Creating an API server in Rust with Actix, SQLx and JWT

所在平台: Udemy

课程主页: https://www.udemy.com/course/rust-api-server-actix-sqlx-jwt/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:使用Rust、Actix、SQLx和JWT创建API服务器 课程概述: 在本课程中,我们将使用Rust创建一个REST API服务器,以管理一个名为MoneyFlow的个人预算系统。MoneyFlow可以帮助我们管理类别和交易。通过这个系统,我们将能够实现以下功能: - 创建、列出、更新和删除类别 - 创建、列出、更新和删除交易 - 按特定类别列出所有交易 - 查看总余额和特定类别的余额 我们将学习以下内容: - 使用cargo创建新的Rust项目 - 构建和运行Rust项目 - 添加库(crates)并启用库功能 此外,我们将了解到基本的API概念,例如: - 路由和HTTP方法 - 从HTTP请求中提取数据 - 与数据库交互以查询和插入数据 - 创建用户账户 - 使用JWT进行身份验证 - 使用模型之间的关系查询和列出相关数据 此外,我们还将学习如何: - 以类型安全的方式处理传入(请求)和传出(响应)数据 - 处理CORS(跨域资源共享) - 实现速率限制 - 创建和运行数据库迁移 在课程最后,我们将有额外的讲座,学习如何将我们的API服务器Docker化,以便在任何地方部署和运行。 我们将使用以下库: - Actix Web:一个强大、务实且极快的Rust网页框架。 - SQLx:一个异步、纯Rust的SQL库,支持编译时检查的查询。 - jsonwebtoken:以强类型的方式创建和解码JWT。 - serde和serde_json:高效和通用地序列化和反序列化Rust数据结构。

课程评论(0条)

课程详情

In this course, we'll create a REST API server in Rust to manage a personal budget called MoneyFlow. MoneyFlow would allow us to manage categories and transactions.Using this system, we'll be able to:Create, list, update and delete categoriesCreate, list, update and delete transactionsList all transactions by a particular categorySee total running balance and the running balance for a categoryWe'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 JWTUsing 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 CORSRate limitingCreate and run database migrationsWe'll have an additional 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:Actix Web: a powerful, pragmatic, and extremely fast web framework for Rust.SQLx: an async, pure Rust SQL crate featuring compile-time checked queries.jsonwebtoken to create and decode JWTs in a strongly typed way.serde and serde_json for serializing and deserializing Rust data structures efficiently and generically.

课程标签

0人关注该课程

主题相关的课程