Skip to content

nathannli/zero2prod

Repository files navigation

os specific setup

p.5

cargo installs

cargo install cargo-watch cargo-audit
cargo install --version='~0.7' sqlx-cli --no-default-features --features rustls,postgres

rustup installs

rustup component add clippy rustfmt

.cargo/config.toml

check for package dependencies

database setup

p.55 script needs to be run at root of project (next to migrations folder) ./scripts/init_db.sh <true|false>

current page

p. 133 epub

dependencies

linux (not always?)

  • apt install pkg-config libssl-dev postgresql-client

macos (arm)

check if webserver alive

after initializing the database..
after running cargo run, run curl -v localhost:8000/health_check, should return 200 < HTTP/1.1 200 OK

About

reading the book zero2prod

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors