Skip to content

Commit c7aca70

Browse files
committed
Reset commits
0 parents  commit c7aca70

File tree

2,233 files changed

+427167
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,233 files changed

+427167
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The language of the repo should be Rust
2+
*.js linguist-language=Rust
3+

.gitignore

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Dependencies and results
2+
target/
3+
node_modules/
4+
release/
5+
6+
# production folder and its files
7+
production/
8+
targets.txt
9+
10+
# .env for api keys and configuration variables
11+
.env
12+
set_env.sh
13+
14+
flask/
15+
actix_full_stack_reference/
16+
17+
config/
18+
*.conf
19+
*.agent
20+
21+
# gRPC client
22+
bloomrpc/
23+
24+
# From session-file-store
25+
session/
26+
27+
# profile images at auth/
28+
profile/*.png
29+
30+
# Should use version control systems instead.
31+
before/
32+
33+
# refer folders are just to help when the author
34+
refer/
35+
36+
# Files with Cypress credentials
37+
cypress.json
38+
cypress.video.json
39+
cypress/
40+
record-video.bash
41+
42+
# You can make it easily
43+
dist/
44+
45+
# AWS
46+
ecs-params.yml
47+
48+
# Heavy Python and its venv files and from dependencies.
49+
__pycache__
50+
python/
51+
admin/
52+
53+
# Files for email
54+
cv.pdf
55+
resume.html
56+
57+
# Cloned repository
58+
ta-rs/
59+
60+
# .swp files from vim
61+
*.swp
62+
63+
# Python with venv files
64+
tkinter/
65+
66+
# db files
67+
*.db
68+
69+
# static/ and public/ in React_Rust except django
70+
# Please, someone commit here if there is a general solution for this.
71+
72+
React_Rust/server/*/static/
73+
React_Rust/server/*/public/
74+
75+
# parcel
76+
77+
.cache/
78+
79+
# Bots should be in production/
80+
81+
# video files for Moviepy/
82+
83+
*.mp4
84+
85+
praw/
86+
graw/
87+
read/
88+
89+
*.cache
90+
91+
# manifest.json for browser extensions
92+
93+
manifest.json
94+
build/
95+
96+
# binary files from Golang, C or C++
97+
98+
main
99+
100+
go-to-do-app/

FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
custom: ["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HLNVQJ2L2YYZU"]

JSON_webservice/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Rust YouTube JSON Webservice example
2+
3+
You can use it for these blog posts.
4+
5+
1. [How to make JSON Webservice with Rust and YouTube API](https://www.steadylearner.com/blog/read/How-to-make-JSON-Webservice-with-Rust-and-YouTube-API)
6+
2. [How to use CORS and OPTIONS HTTP request with Rust Rocket](https://www.steadylearner.com/blog/read/How-to-use-CORS-and-OPTIONS-HTTP-request-with-Rust-Rocket)
7+
3. [How to render a YouTube vlog with Rust Yew fetch API](https://www.steadylearner.com/blog/read/How-to-render-a-YouTube-vlog-with-Rust-Yew-fetch-API)
8+
9+
## How to test it
10+
11+
1. Build /server/.env with [YouTube API](https://www.google.com/search?q=how+to+use+youtube+api+for+developers).
12+
2. **$./install.sh** in **web** folder and **$./run-local.sh** for the full stack Rust JSON Webservice example.

JSON_webservice/run-local.sh

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
set -e #$help set
4+
5+
# build frontend assets and put them in a place the Rocket server
6+
# expects
7+
8+
9+
echo "building web"
10+
pushd web #$help pushd
11+
yarn build
12+
popd #$help popd
13+
echo "web build complete"
14+
15+
cp web/target/wasm32-unknown-unknown/release/index.js server/web/index.js
16+
cp web/target/wasm32-unknown-unknown/release/index.wasm server/web/index.wasm
17+
cp web/static/index.html server/web/index.html
18+
cp web/static/index.css server/web/index.css
19+
cp web/static/favicon.ico server/web/favicon.ico
20+
21+
cp web/static/normalize.css server/web/normalize.css
22+
cp web/static/steadylearner.css server/web/steadylearner.css
23+
cp web/static/markdown.css server/web/markdown.css
24+
cp web/static/modal.css server/web/modal.css
25+
26+
cp web/static/bundle.js server/web/bundle.js
27+
cp -R web/static/node_modules server/web/node_moduels
28+
29+
(
30+
echo "running server"
31+
cd server
32+
cargo run --release
33+
)
34+
35+

0 commit comments

Comments
 (0)