- How to build a REST API using Actix Web.
- How to use
Mutexfor safe shared state in a web server. - How to implement CRUD operations for tasks and users.
- How to serialize and deserialize data with Serde.
- How to persist data to a JSON file.
- How to handle CORS in Actix Web.
- How to structure a Rust web project.
- Task management: create, read, update, delete tasks.
- User management: add users, query by username.
- Persistent storage using
database.json. - Simple authentication logic (username/password).
- CORS support for frontend integration.
cargo runGET /task- List all tasksPOST /task- Create a new taskPUT /task- Update a taskGET /task/{id}- Read a task by idDELETE /task/{id}- Delete a taskPOST /register- Add a userPOST /login- Log in