actix_web server
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
Note service is a binary crate written in Rust.
๐ Features
- ๐งฎ Async CRUD operations.
- ๐ Actix-Web core.
- โป๏ธ sqlx support.
๐ฆ Installation
- Make sure you have Rust
- Install
sqlx
tools:
cargo install sqlx-cli --features sqlite
cargo sqlx prepare
- Run
sqlx
migration
cargo sqlx migrate run
- Build and run the project
cargo build
cargo run
-
Open bind http://127.0.0.1:8080
-
Use paths
- GET
/notes
- GET
/notes/{id}
- POST
/notes
- PUT
/notes/{id}
- DELETE
/notes/{id}
Read other posts?