Companies Home Search Profile

Creating an API server in Rust with Rocket, SeaORM and JWT

Focused View

Afaan Bilal

1:49:12

218 View
  • 1. Introduction.mp4
    00:55
  • 2. Creating a Rust project.mp4
    01:11
  • 3. Understanding directory structure.mp4
    02:13
  • 4. Rust Basics.html
  • 5. Basic Requirements and Resources.html
  • 6. GitHub Repository.html
  • 1.1 GitHub Repo.html
  • 1.2 Rocket.rs.html
  • 1. Adding Rocket.mp4
    01:24
  • 2.1 GitHub Repo.html
  • 2.2 Rocket.rs.html
  • 2. Rocket Hello World Explanation.mp4
    01:31
  • 3. GitHub Repository.html
  • 1.1 GitHub Repo.html
  • 1.2 Rocket.rs.html
  • 1.3 SeaORM.html
  • 1. Adding SeaORM.mp4
    02:13
  • 2.1 SeaORM.html
  • 2. Designing the database structure.mp4
    01:02
  • 3.1 SeaORM Migrations.html
  • 3. Setting up migrations.mp4
    03:31
  • 4.1 GitHub Repo.html
  • 4.2 Writing Migrations.html
  • 4. Writing database migrations.mp4
    11:39
  • 5.1 Connecting to the Database.html
  • 5.2 GitHub Repo.html
  • 5. Connecting to the database and running migrations.mp4
    07:57
  • 6.1 Generating SeaORM Entities.html
  • 6.2 GitHub Repo.html
  • 6. Generating SeaORM entities.mp4
    05:39
  • 7. GitHub Repository.html
  • 1. Designing the REST API.mp4
    03:44
  • 2. Creating a Postman collection.mp4
    06:30
  • 1.1 GitHub Repo.html
  • 1. Rocket Response, Routing and Controllers.mp4
    05:34
  • 2.1 GitHub Repo.html
  • 2. Rocket Fairings CORS.mp4
    02:51
  • 3.1 GitHub Repo.html
  • 3. Rocket Managed State Database.mp4
    02:18
  • 4.1 GitHub Repo.html
  • 4. Rocket Request and Response Data - Sign in.mp4
    02:49
  • 5.1 GitHub Repo.html
  • 5. Rocket Request and Response Data - Sign Up.mp4
    00:45
  • 6. GitHub Repository.html
  • 1.1 GitHub Repo.html
  • 1. Authentication Flow.mp4
    01:55
  • 2.1 GitHub Repo.html
  • 2. Implementing Sign Up.mp4
    04:20
  • 3.1 GitHub Repo.html
  • 3. Implementing Sign In.mp4
    05:22
  • 4.1 GitHub Repo.html
  • 4. Rocket Request Guards.mp4
    07:34
  • 5. GitHub Repository.html
  • 1. Postman collection setup.mp4
    01:09
  • 2.1 GitHub Repo.html
  • 2. JSON Responses.mp4
    02:48
  • 3.1 GitHub Repo.html
  • 3. Books List.mp4
    02:30
  • 4.1 GitHub Repo.html
  • 4. Authors List.mp4
    01:09
  • 5.1 GitHub Repo.html
  • 5. Creating Authors.mp4
    01:51
  • 6.1 GitHub Repo.html
  • 6. Creating Books.mp4
    01:40
  • 7.1 GitHub Repo.html
  • 7. Show one Book and one Author.mp4
    02:18
  • 8.1 GitHub Repo.html
  • 8. Updating Books and Authors.mp4
    03:52
  • 9.1 GitHub Repo.html
  • 9. Deleting Books and Authors.mp4
    01:39
  • 10.1 GitHub Repo.html
  • 10. List Books by an Author.mp4
    01:59
  • 11.1 GitHub Repo.html
  • 11. Implementing From trait.mp4
    02:03
  • 12. GitHub Repository.html
  • 1.1 Docker Image.html
  • 1.2 GitHub Repo.html
  • 1. Dockerize - Creating a Docker image.mp4
    02:32
  • 2. GitHub Repository.html
  • 3. Conclusion.mp4
    00:45
  • Description


    Build your own REST API server with the safety and performance of Rust using Rocket, SeaORM and JWT authentication.

    What You'll Learn?


    • Create a Rust project
    • Create a REST API server using Rocket
    • Interacting with a database using SeaORM
    • Authenticating APIs using JWT
    • Writing database migrations using SeaORM CLI

    Who is this for?


  • Programmers curios about creating REST API servers and other projects using Rust
  • Beginner Rust developers looking to use the Rocket web framework
  • Beginner Rust developers looking to use SeaORM for database interactions
  • Beginner Rust developers curios about JWT authentication
  • More details


    Description

    In this course, we'll create a REST API server in Rust to represent a bookstore. This bookstore would allow us to add books and authors.


    Using this system, we'll be able to:

    • Create, list, update and delete authors

    • Create, list, update and delete books

    • Associate and disassociate books and authors

    • List all books by a particular author


    We'll learn how to:

    • Create a new Rust project using cargo

    • Build and run our Rust project

    • Add crates and enable crate features


    We'll learn about basic API concepts such:

    • Routing and HTTP methods

    • Extracting data from HTTP requests

    • Interacting with the database to query and insert data

    • Creating user accounts

    • Authentication using JWT

    • Creating and using relationships between models to query and list associated data


    Along with these concepts, we'll learn how to:

    • Handle incoming (request) and outgoing (response) data in a type safe way

    • Handle CORS

    • Create and run database migrations

    • Create one-to-many database relationships

    • Create entities from database tables


    We'll have a bonus lecture at the end to learn how to Dockerize our API server to deploy and run it anywhere.


    We'll be using the following crates:

    1. Rocket: a web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety.

    2. SeaORM: is a relational ORM to help you build web services in Rust.

    3. jsonwebtoken to create and decode JWTs in a strongly typed way.

    4. serde_json for serializing and deserializing Rust data structures efficiently and generically.


    Who this course is for:

    • Programmers curios about creating REST API servers and other projects using Rust
    • Beginner Rust developers looking to use the Rocket web framework
    • Beginner Rust developers looking to use SeaORM for database interactions
    • Beginner Rust developers curios about JWT authentication

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Senior Software Development Engineer at Centiment. Co-Founder at Shmooze. Experienced senior software engineer with 12+ years of experience in the computer software industry. Skilled in Software Architecture, Web Applications and Services. Strong entrepreneurship professional with a Bachelor of Technology (B. Tech.) focused in Civil Engineering from National Institute of Technology, Srinagar.
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 35
    • duration 1:49:12
    • Release Date 2023/05/13