- Stable rust
- Postgresql 11, requires
libpq
curl https://sh.rustup.rs -sSf | sh
sudo apt install gcc
sudo apt install postgresql postgresql-contrib libpq-dev
docker-compose up -d
docker exec -i howtocards_backend bash -c 'cd /app && diesel migration run'
cargo install diesel_cli --no-default-features --features postgres
# Build production binary
cargo build --release
# Development
cargo install cargo-watch
cargo watch -x run
diesel migration run
To revert migration run
diesel migration revert