Skip to content

Commit 226dee2

Browse files
committed
Update the README.md files and should update the Steadylearner.
0 parents  commit 226dee2

File tree

1,646 files changed

+284601
-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.

1,646 files changed

+284601
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
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

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Dependencies and results
2+
target/
3+
node_modules/
4+
release/
5+
6+
# .env for api keys and configuration variables
7+
.env
8+
9+
flask/
10+
actix_full_stack_reference/
11+
12+
config/
13+
14+
# gRPC client
15+
bloomrpc/
16+
17+
# From session-file-store
18+
session/
19+
20+
# profile images at auth/
21+
profile/*.png
22+
23+
# Should use version control systems instead.
24+
before/
25+
26+
# refer folders are just to help when the author
27+
refer/
28+
29+
# Files with Cypress credentials
30+
cypress.json
31+
cypress.video.json
32+
cypress/
33+
record-video.bash
34+
35+
# You can make it easily
36+
dist/
37+
38+
# AWS
39+
ecs-params.yml
40+
41+
# Heavy Python and its venv files and from dependencies.
42+
__pycache__
43+
python/
44+
admin/
45+
46+
# Files for email
47+
cv.pdf
48+
resume.html
49+
50+
# Cloned repository
51+
ta-rs/
52+
53+
# Where I test a language feature
54+
lang/
55+
56+
# .swp files from vim
57+
*.swp

FUNDING.yml

Lines changed: 3 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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

Lines changed: 35 additions & 0 deletions
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)