zero2prod

Following along with Zero to Production in Rust

Build

  1. Initialize Postgres docker image and run migrations: ./scripts/init.sh
  2. 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.