Rust Axum Production Coding (E01 - Rust Web App Production Coding)

preview_player
Показать описание

In this episode, we'll dive into some Rust production coding. Starting from where we left off in the Rust Axum Full Course, we'll scale it up to a production-ready web application code base. Over the course of 9 chapters, we'll tackle tracing, configuration, and the model layer with PostgreSQL. Then, we'll delve into password encryption and secure web tokens, end with a JSON-based RPC implementation.

Content:

- 00:00:00 - INTRO
- 00:01:00 - E01-C01 - Baseline
- 00:09:50 - E01-C02 - Tracing (basics)
- 00:14:26 - E01-C03 - Config
- 00:21:17 - E01-C04 - DB Live Reload
- 00:39:48 - E01-C05 - Model 1/2 - Task CRUD
- 01:18:55 - E01-C06 - Model 2/2 - Shared Impl
- 01:44:00 - E01-C07 - Pwd Encrypt & Validation
- 02:22:21 - E01-C08 - Secure Token & Web Auth
- 03:14:45 - E01-C09 - RPC (JSON-RPC)

#RustProgramming #RustLang #WebDevelopment #completecourse

Tech notes:

- `cargo install cargo-watch` - If you haven't already, make sure to install Cargo Watch.
- This project currently utilizes sqlx 0.6.x. Although sqlx 0.7.1 is available, it appears to have timeout issues with some of the unit tests. I'm looking into this problem and will upgrade once it's resolved. In the meantime, for a seamless experience, please use sqlx 0.6 and sqb 0.3.

Jeremy Chone:

Other popular Rust Programming videos:

Playlists:

Tool used:

- ScreenBrush on Mac App Store (Gromit seems to be the equivalent on Linux)
- Recut for audio flow.
- Izotope RX for de-mclick and dessing.
- Davinci Resolve as video editing.
Рекомендации по теме
Комментарии
Автор

I feel like giving a little testimony. Finally after weeks of coding along, stopping, hovering with the mouse in VSCode to read docs of used rust constructs, studying to understand the code, and trying to do things before you, so that i could know i was really learning, i finished this one. Unbelievable how much knowledge i got, not only in rust, but in backend best practices in general, and how robust is the basis provided by the code of this lesson, along with the rust axum course, and the follow up episote 2 (Sql builder with modql). The final part with declarative macros was a grand finale, since i had never built something usefull with macros, and finally saw a simple and useful application, that i can replicate to other situations.
I feel like getting up and giving a round of applause. Thanks a lot for that. I will use the base i constructed so far from your code to build a production web service in an ongoing project.

FernandoCelestino-DataVirtus
Автор

As a Rust beginner, am taking my sweet time slowly going through all these videos, they are more than a gold mine. Really appreciate all the effort you've put into these series!

peterklemenc
Автор

This video needs a lot more attention.

dranx
Автор

The best rust channel with hands-on tutorials! Thank you!!!

engdoretto
Автор

I paid a year's membership to show appreciation for such great work. I hope viewers will not just spread the word but also chip in to show their support.

Chin-LongShu
Автор

Hello Jeremy,
(French here) Thank you very much for the quality of your videos on Rust, especially this one! They are very structured; all the explanations are clear yet comprehensive; and even though the project seems simple at first sight, you managed to provide us with so many concepts and best practices. That’s really a masterpiece of a job! All the best for your future videos ;)

mishadaley
Автор

This is Fantastic! Thank you so much for all you do for the Rust Community!

kameikojirou
Автор

You can really feel the passion and the amount of dedication that went into this. Very unique here on YouTube. I hope you'll continue to be able to produce high quality content like this full time. ❤

herrbanane
Автор

This captures the best practices for coding the backend, applicable to all languages, not just Rust. Thanks a lot!

TNN
Автор

i marked previous episode to see after my current job done. it will be done in about three weeks and I will have 5 hours of wonderful videos to enjoy and learn
thanks

sinaebr
Автор

Loved the unit-test approach discussion. The different approaches to unit-test are not discussed enough. It is good to see some light being shed into it.

ItaloMaiaTM
Автор

I LOVE your videos. Even tho Rust is the hardest language I learned yet, it still is way to interesting to give up, and your videos are helping A LOT. <3

chaqua
Автор

thank you, learnt alot from you! I love the way you teach, easy to follow. did not expect I can finish in a session.

iwansyahp
Автор

Elles sont excellentes tes vidéos merci de pousser autant la technicité. Prend ton temps, ce contenu est excellent !

maxali
Автор

I never comment on YouTube, this is a masterpiece, thank you, you made the difference.

ruggerorebellato
Автор

This is awesome man! Pure gold content. Thanks for all the effort you've put making the app, explaining what you´re doing and editing the video!

pablovigliero
Автор

Nice! Eager to code along to improve my knowledge. Thank you!

LinuxForLife
Автор

Good to see you back thanks for Rusty teachings.

prashlovessamosa
Автор

Thank you a lot for the videos and your contribution to the Rust community as a whole.

Small suggestions:
- "thiserror" crate instead of implementing the Error boilerplate
- "clap" crate for the configuration part

jdery
Автор

Wow.. Very happy to see your reguler Rust video... We are so lucky that we got you.

hnazmul