./scripts/init_db.sh
# or
SKIP_DOCKER=true ./scripts/init_db.sh
cargo test
cargo tarpaulin --ignore-tests
cargo check
cargo clippy
cargo audit
cargo fmt
cargo run
curl -v http://127.0.0.1:8000/health_check
docker build --tag zero2prod --file Dockerfile .
brew install doctl
doctl auth init
doctl apps create --spec spec.yaml
doctl apps list
# update if necessary
doctl apps update uuid-of-apps-taken-from-previous-command-output --spec=spec.yaml
DATABASE_URL=postgresql://newsletter:<PASSWORD>@<HOST>:<PORT>/newsletter?sslmode=require sqlx migrate run
curl --request POST \
--data 'name=le%20guin&email=ursula_le_guin%40gmail.com' \
https://{subdomain}.ondigitalocean.app/subscriptions \
--verbose