Experiments with Actix-web
This is a basic representation of a backend web-server, designed for use in web applications thanks to its support for WebAssembly.


backend server

๐Ÿ“š raw_web_server

Note service is a binary crate written in Rust.

Rust Version actix-web Version tokio Version sqlx Version serde Version Build Status

๐Ÿš€ Features

  • ๐Ÿงฎ Async CRUD operations.
  • ๐ŸŒ Actix-Web core.
  • โ™ป๏ธ sqlx support.

๐Ÿ“ฆ Installation

  1. Make sure you have Rust
  2. Install sqlx tools:
cargo install sqlx-cli --features sqlite
cargo sqlx prepare 
  1. Run sqlx migration
cargo sqlx migrate run
  1. Build and run the project
cargo build
cargo run
  1. Open bind http://127.0.0.1:8080

  2. Use paths

  • GET /notes
  • GET /notes/{id}
  • POST /notes
  • PUT/notes/{id}
  • DELETE /notes/{id}