Build a CRUD REST API with Rust Axum | Tutorial

preview_player
Показать описание
A tutorial on creating a basic CRUD REST API with Rust, using the Axum framework and Postgres as the database.

Timestamps
00:00 Introduction
00:26 Creating your Postgres user and database.
02:40 The .env file for environment variables
02:55 How to get your Postgres database connection string.
03:23 Import struct, traits, functions, and macros into the program scope.
04:48 Working with environment variables.
08:13 Get/Read task API handler.
10:08 Post/Create task API handler.
13:15 Patch/Update task API handler.
15:30 DELETE task API handler.
17:34 Update task handler Revisited and Redesigned.

Further reading

#rust #axum #sql
Рекомендации по теме
Комментарии
Автор

Excellent video, this video literally takes a complete beginner, to writing, getting, updating and deleting from a database. Excellent work.

AyomideAdebara-pq
Автор

awesome .. and greate channel for rust bigginner.. please do more.. we want more like this.

Mr.BinarySniper
Автор

Beautiful tutorial... how did you get those pretty checkmarks in your lines of code?

Shemang
Автор

$ psql -U axum_postgres
psql: error: connection to server on socket failed: FATAL: Peer authentication failed for user "axum_postgres"

meka