Use the virtual variable RUST_LOG for logging
# Copy example .env file
cp ./config/.env.example .env
# Run postgres
docker-compose up -d postgres
# Install diesel
cargo install diesel_cli --no-default-features --features postgres
# Run db migrations
DATABASE_URL=postgres:https://actix:actix@localhost:7878/actix diesel migration run
# Run unit tests
cargo test
# Run the server (Add --release for an optimized build)
cargo run
# Check it
curl https://localhost:7878/api/spec/v2
cd docker
docker-compose up
cargo build --release
./test.sh
or
cargo test