actix-web-example
is a complete website created using actix-web.
It uses diesel for interacting with the database.
The following actions can be done
- Create an account
- Login
- Delete an account
- Change password
- Logout
- This uses MySql (or Maria DB) so make sure that MySql (or Maria DB) is installed and running. Feel free to change the code to use any other database.
- Diesel is also required. To install it
cargo install diesel_cli --no-default-features --features mysql
- Change .env to be of the form given below (Refer .env in this repo as an example)
DATABASE_URL=mysql://username:password@localhost/actix_web_example
- Run the following commands
diesel setup
diesel migration run
cargo run