u/fnord123in r/rust • Recommends
On “i just done reading rust lang book and want go to web dev”
33K subscribers • 3 videos on Hallway
Intermediate. Assumes working knowledge.
253K views3 years ago5 recommendations
Web developmentProgramming languagesRustHTTP, REST and GraphQLFull-stack frameworks
Jeremy Chone teaches web development in Rust using the Axum framework, covering routing, state, and best practices.
Rust Programming - Full Course for Axum: An Awesome Web Framework for Rust. Not too low-level, not too high-level, well-componentized, complete, and with great ergonomics. GitHub Code: github.com/jeremychone-channel/rust-axum-course (MIT or Apache 2.0, all free to use) Big thanks to CrabNebula (crabnebula.dev/) for sponsoring this video. Help support this channel: patreon.com/jeremychone IMPORTANT: On **Windows** for the "link" file issue when running the cargo test and run in parallel. The solution is to move `tests/quick_dev.rs` to the `examples` folder, rename the function to `#[tokio::main]`, and it should allow you to do the following: - In Terminal 1: `cargo watch -q -c -w src/ -x run` - In Terminal 2: `cargo watch -q -c -w examples/ -x 'run --example quick_dev'` (we will follow this scheme in the next videos) Tech notes: - `cargo install cargo-watch` - If you haven't already, make sure to install Cargo Watch. - On Windows, there appears to be an issue when running two Cargo commands on the same project simultaneously. If you have a solution, please add a comment and I will include it here. - Don't use `store: ... Vec` in production code, as it won't scale. It's just for this demo. I've created a new mock-store crate that handles this in a better way (for future videos). Content: - - Intro - - Hello World Router - - Quick_Dev - - Hello Route - Query Params - - Hello Route - Path Param - - routes_static - - First LOGIN API - - Login Auth-Token Cookies - - Rest API - Mock Model/Store - - CRUD - REST API - - First Middleware - mw_require_auth - - require_auth - token parsing - - First Extractor - Ctx - - Ctx in mw_require_auth - - Ctx in the REST APIs - - mw_ctx_resolver - - Error Client & Server - - Server Log line #RustProgramming #RustLang #WebDevelopment #completecourse Jeremy Chone: - Twitter - twitter.com/jeremychone - Discord General Rust - discord.gg/W2besKCzjx - Discord Awesome-App - discord.gg/XuKWrNGKpC - Patreon - patreon.com/jeremychone Next: In the next tutorial, we will build upon this course and lay the foundation for a real production app. - Remove the demo content (hello/hello2, and REST Ticket) and do some cleanup. - Refactor the model layer (still using a mock-store, but making the design more production-ready. We will have two entities `Task` and `User`). - Implement multi-scheme password encryption (using a secret and user_pwd_salt, as well as a #scheme_id#encrypted format to allow seamless encryption scheme evolution). - Implement Secure Web Token, (using a secret and `user_token_salt`). - Use RPC (JSON-RPC) following the [joql.org](joql.org) notation. Other popular Rust Programming videos: - Rust Type State Builder Pattern - youtube.com/watch?v=pwmIQzLuYlWhat people say. Highly recommended by the Rust community as an exceptionally high-quality, comprehensive tutorial for learning Axum and Rust web development.
u/fnord123in r/rust • Recommends
On “i just done reading rust lang book and want go to web dev”
u/eboodyin r/rust • Recommends
On “Is Rust suitable for me?”
u/doodlerin r/rust • Recommends
On “Start learning axum”
u/MRDRMUFNin r/rust • Recommends
On “Actix or Axum for my startup backend ? ”
u/Known_Cod8398in r/rust • Recommends
On “What’s everyone working on this week (25/2023)?”
u/fnord123in r/rust • Recommends
On “Looking to create a backend service for a website in Rust and I’m wondering on how to best do it”