- use local postgres / docker postgres
- libpq
- diesel_cli
- rust
docker run -d -p 5432:5432 -e POSTGRES_USER=<username> -e POSTGRES_PASSWORD=<password> postgres:14-alpine
note: for the postgres image you can use the latest postgres by changing the
postgres:alpine-14
topostgres
in this project i use
postgres:14-alpine
because it is known to be lighter than other images
cargo install diesel_cli --no-default-features --features postgres
run diesel setup
in the terminal
to run the project , just run this command in the terminal:
cargo run .