Mô tả

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 are a web developer who wants to use Rust and is looking for a resource to guide you through the currently available tools and the surrounding ecosystem.


Well, look no further! In this course we will experience how easy and straight forward creating a web application with Rust is. We will create routes, endpoints, set up authorization, handle databases and feed our clients with JSON. We will use tools such as the Rocket framework and the Diesel ORM. The authorization will be a simple Basic authorization.

In the end we will have a fully functioning CRUD REST API ready to serve clients asynchronously and blazingly fast. We will also deploy this application behind an nginx webserver which will also handle the SSL negotiation, making our app served in a secured way under HTTPS. (requires an existing webserver and domain)


Jump abroad!

Bạn sẽ học được gì

Building and deploying a Rocket REST API

Implementing Basic Authentication for a Rocket REST API

How basic CRUD with Diesel ORM works

Serializing and deserializing Rust structs with Serde

Yêu cầu

  • Basic Rust knowledge (ideally have read The Rust Language Book)
  • Basic web development knowledge (HTTP and REST fundamentals)

Nội dung khoá học

6 sections

Introduction

3 lectures
Introduction
07:32
Visual Studio Code setup
03:05
Gitlab repository
00:15

Routing

5 lectures
Hello world!
10:08
JSON
03:29
CRUD routes
15:33
Route matching
2 questions
Error catchers
04:04

Auth

5 lectures
Basic auth intro
04:40
Implementing a basic auth guard
14:47
Error catcher for unauthorized
1 question
Cleanup
05:54
Making our authorisation guard more robust
1 question

Database

10 lectures
Diesel CLI
15:33
Diesel and rocket - Dependencies
09:33
Diesel and rocket - Model & first query
14:35
Diesel and rocket - New model & create endpoint
13:54
Error catcher for unprocessable entity
1 question
Diesel and rocket - Full CRUD
23:37
Repositories
21:53
Error handling
11:41
Validation for delete route
1 question
Embedding migrations
08:10

Deploying

2 lectures
Deploying and systemd
15:42
Reverse proxying with nginx and ssl
09:27

Outro

1 lectures
Recap and goodbye
01:09

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.