Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building web APIs with Rust (advanced)
Rating: 4.7 out of 5(178 ratings)
2,407 students

Building web APIs with Rust (advanced)

Back-end web development for Rustaceans
Created byParis Liakos
Last updated 11/2023
English
English

What you'll learn

  • Implementing an authentication service in a Rocket REST API
  • Managing database entities with complex fields and relationships using async Diesel and PostgreSQL
  • Implementing a cache database with Redis
  • Session handling and granular access management for different endpoints
  • Testing API endpoints in an automated way
  • Sending HTML emails with lettre and tera
  • Writing CLI commands with clap

Course content

9 sections29 lectures8h 37m total length
  • Introduction10:10

    Discover building web APIs with Rust, focusing on back-end development, framework choices like Hyper, Actix, and Rocket, plus Diesel with Redis for storage and caching.

  • Local setup13:12

    Initialize a Rust web API binary with cargo init, then configure a Docker Compose dev stack with Postgres and Redis, Diesel CLI, and Cargo Watch for live builds.

  • Gitlab repository0:15

Requirements

  • Good knowledge of Rust
  • Familiarity with docker and docker-compose
  • Understanding of HTTP, REST and JSON
  • Experience with SQL and ORMs in general

Description

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 have already spent a good amount of time developing web applications and you have a very good understanding of Rust.

You are beyond the point of simple, toy applications and you are ready to start doing some serious back-end web development and you are wondering whether Rust can be used for this purpose.

You are looking for a resource that has all you need in a single place.


Well, look no further! In this course i will show you how to create a complex, fully async web app in Rust that serves JSON APIs but also has a CLI interface at the same moment.


We will use the Rocket web framework along with the Diesel ORM to build Rest APIs with

- Authentication built-in (users and passwords)

- Redis as a cache storage

- Access management with roles

- Handling for datetime fields

- CLI commands

- Logging

- Automated API testing

Who this course is for:

  • Web developers looking to build a Rust server for advanced cases
  • Web developers looking into building very fast and reliable servers