zero2prod
Following along with Zero to Production in Rust
Build
- Initialize Postgres docker image and run migrations:
./scripts/init.sh
- Build server:
cargo build
Run
$ cargo run
This application uses the bunyan log format. To pretty-print logs, pipe cargo run
into the node or rust version of the bunyan
cli tool:
$ cargo run | bunyan
The log level can be controlled with the RUST_LOG
environment variable.
Test
Run cargo test
.