最新消息:请大家多多支持

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

其他教程 dsgsd 87浏览 0评论

Published 3/2023
Created by Afaan Bilal
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English | Duration: 43 Lectures ( 1h 50m ) | Size: 899 MB

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

Requirements
Basic programming experience
Basic experience with the Rust programming language

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 authorsCreate, list, update and delete booksAssociate and disassociate books and authorsList all books by a particular authorWe’ll learn how to:Create a new Rust project using cargoBuild and run our Rust projectAdd crates and enable crate featuresWe’ll learn about basic API concepts such:Routing and HTTP methodsExtracting data from HTTP requestsInteracting with the database to query and insert dataCreating user accountsAuthentication using JWTCreating and using relationships between models to query and list associated dataAlong with these concepts, we’ll learn how to:Handle incoming (request) and outgoing (response) data in a type safe wayHandle CORSCreate and run database migrationsCreate one-to-many database relationshipsCreate entities from database tablesWe’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:Rocket: a web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety.SeaORM: is a relational ORM to help you build web services in Rust.jsonwebtoken to create and decode JWTs in a strongly typed way.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


Password/解压密码www.tbtos.com

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » Creating an API server in Rust with Rocket, SeaORM and JWT

您必须 登录 才能发表评论!