Note service is a binary crate written in Rust. This is a basic representation of a backend web-server, designed for use in web applications thanks to its support for WebAssembly.
- 🧮 Async CRUD operations.
- 🌐 Actix-Web core.
- ♻️ sqlx support.
- 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}