Rust is a systems programming language which you can use to write applications with high performance. It is amazingly refreshing with a very helpful compiler who is your mentor since the very beginning.
Cargo is not only a package manager but also a build tool, a documentation generator and a lot more, making your every day managing Rust apps really easy.
It is no wonder that for these reasons, plus many more, Rust was voted as StackOverflow’s most loved and desired programming language, eight years in a row.
Rust is a systems programming language which you can use to write applications with high performance. It is amazingly refreshing with a very helpful compiler who is your mentor since the very beginning.
Cargo is not only a package manager but also a build tool, a documentation generator and a lot more, making your every day managing Rust apps really easy.
It is no wonder that for these reasons, plus many more, Rust was voted as StackOverflow’s most loved and desired programming language, eight years in a row.
You are a web developer who wants to use Rust and is looking for a resource to guide you through the currently available tools and the surrounding ecosystem.
Well, look no further. In this course we will experience how easy and straight forward creating a web application with Rust is. We will create routes, endpoints, set up authorization, handle databases and feed our clients with JSON. We will use tools such as the Rocket framework and the Diesel ORM. The authorization will be a simple Basic authorization.
In the end we will have a fully functioning We will also deploy this application behind an nginx webserver which will also handle the SSL negotiation, making our app served in a secured way under HTTPS. (requires an existing webserver and domain)
Jump abroad.
What is Diesel and its CLI tool.
Specifying r2d2 and diesel dependencies along with rocket support.
Creating our first model and doing our first query
Connecting our create endpoint to the database
Implementing DB queries for the rest of our endpoints
Creating reusable database related functions with repositories.
Handling errors gracefully without panicking
We will make deploying easier by putting migrations in our binary
Configuring rocket for production and then compiling our binary for production.
Installing nginx and setting a reverse proxy which serves our rocket application. Securing our application with SSL.
Goodbye!
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.