Skip to content

yuk1ty/rust-webapp-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-webapp-tutorial

An introduction to build web application in Rust step by step.

How this works?

This tutorial uses cargo workspace -- is a feature in cargo. You can run each project by cargo run -p [project_name]. For example:

  • health-check: cargo run -p health-check
  • first-todo-list: cargo run -p first-todo-list
  • second-todo-list: cargo run -p second-todo-list

Contents

The tutorial has x contents below:

  • health-check: At the beginning, we try to implement a simple endpoint. Create the endpoint alaways returns status code 200 OK and its body ("OK"). First touch for async/.await, asynchronous runtimes and other advanced Rust's grammer.
  • first-todo-list: Working on JSON response and introducing some convenient crates. Throughout this section, you will be able to create an endpoint to return JSON response. In addition, we introduce some crates (generating uuid, handling datetime, logging) for the sake of real-world applications.
  • second-todo-list: Mainly working on connecting to a database (using sqlite) in this tutorial. At the end of this section, you will be able to connect the database and execute any queries. We'll see some typical workarounds in Rust as well.

Requirements

  • Rust >= 1.50.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages