使用 Rust 构建 Web API(高级)

Rustaceans的后端Web开发

教程演示🔗

What you’ll learn 学习内容

  • Implementing an authentication service in a Rocket REST API
    在 Rocket REST API 中实现身份验证服务
  • Managing database entities with complex fields and relationships using async Diesel and PostgreSQL
    使用异步 Diesel 和 PostgreSQL 管理具有复杂字段和关系的数据库实体
  • Implementing a cache database with Redis
    使用 Redis 实现缓存数据库
  • Session handling and granular access management for different endpoints
    针对不同端点的会话处理和精细访问管理
  • Testing API endpoints in an automated way
    以自动化方式测试 API 端点
  • Sending HTML emails with lettre and tera
    使用 lettre 和 tera 发送 HTML 电子邮件
  • Writing CLI commands with clap
    使用 clap 编写 CLI 命令

Requirements 要求

  • Good knowledge of Rust 良好的 Rust 知识
  • Familiarity with docker and docker-compose
    熟悉 docker 和 docker-compose
  • Understanding of HTTP, REST and JSON
    了解HTTP、REST和JSON
  • Experience with SQL and ORMs in general
    一般具有 SQL 和 ORM 的经验

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.
Rust 是一种系统编程语言,可用于编写高性能应用程序。一个非常有帮助的编译器令人耳目一新,他从一开始就是你的导师。

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.
Cargo 不仅是一个包管理器,还是一个构建工具、一个文档生成器等等,让你每天管理 Rust 应用程序变得非常容易。

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 连续八年被评为 StackOverflow 最受欢迎和最渴望的编程语言。

You have already spent a good amount of time developing web applications and you have a very good understanding of Rust.
你已经花了很多时间开发 Web 应用程序,并且你对 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.
你已经超越了简单的玩具应用程序,你已经准备好开始做一些严肃的后端 Web 开发,你想知道 Rust 是否可以用于此目的。

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.
好吧,不要再看了!在本课程中,我将向您展示如何在 Rust 中创建一个复杂的、完全异步的 Web 应用程序,该应用程序提供 JSON API,但同时也具有 CLI 接口。

We will use the Rocket web framework along with the Diesel ORM to build Rest APIs with
我们将使用 Rocket Web 框架和 Diesel ORM 来构建 Rest API

– Authentication built-in (users and passwords)
– 内置身份验证(用户和密码)

– Redis as a cache storage
– Redis 作为缓存存储

– Access management with roles
– 使用角色进行访问管理

– Handling for datetime fields
– 日期时间字段的处理

– CLI commands – CLI 命令

– Logging -伐木

– Automated API testing – 自动化 API 测试

Who this course is for:
本课程适用于谁:

  • Web developers looking to build a Rust server for advanced cases
    希望为高级案例构建 Rust 服务器的 Web 开发人员
  • Web developers looking into building very fast and reliable servers
    希望构建非常快速和可靠的服务器的 Web 开发人员

发表回复

后才能评论

尊敬的用户,您好!由于部分培训机构和留学生的举报,近期导致网站大量链接暂时失效。对此给您带来的不便,我们深表歉意。任何链接失效的资源,欢迎您添加侧边栏二维码随时反馈,我们将在48小时内为您提供新的网盘链接。如果您对此不便感到不满,您也可在48小时内申请无理由退款。感谢您的理解与支持!

Windows播放器推荐:Potplayer Potplayer 是免费的 Windows 播放器,支持双字幕和自动翻译功能。以下是操作指南: 挂载字幕 加载中文字幕:右击选择 字幕 -> 字幕设置,取消“只匹配文件名字幕”选项。可调整字幕颜色、位置和大小。 双字幕设置:右击 字幕 -> 选择字幕 -> 次字幕输出,设置主字幕和次字幕。 自动翻译 若可访问 Google 翻译服务,选择 字幕 -> 实时字幕翻译,勾选 总是使用 和 Google Translate,即可实时翻译英文字幕。 Potplayer 让观看更智能,学习体验升级。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可联络站长解决。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源