- rust
- docker
To initialize database locally:
./scripts/init_db.sh
To initialize redis locally:
./scripts/init_redis.sh
To build the project:
cargo build
To run the project:
cargo run
http://127.0.0.1:8000 should be up and running
When you want to see all logs coming out of a certain test case to debug it you can run:
TEST_LOG=true cargo test health_check_works | bunyan
To generate a new migration script:
sqlx migrate add create_subscription_tokens_table
To run docker zero2prod build:
docker build --tag zero2prod --file Dockerfile .
To run the container:
docker run -p 8000:8000 zero2prod
To run migrations locally:
SKIP_DOCKER=true ./scripts/init_db.sh
To scan for unused crates in Cargo:
cargo +nightly udeps
actix-web-flash-messages
handles cookies automatically