API to expose recipe stored in Postgres
curl https://sh.rustup.rs -sSf | sh
rustup default nightly # use nightly for rocket
rustup component add clippy # install linter
rustup component add rustfmt # install formatter# run dependencies
docker-compose upcargo build # compile
cargo run --bin web_server # run the server
cargo test -- --test-threads=1 # run the tests
cargo fmt # format the code
cargo clippy # run the linter- run
cargo run --bin web_serverto start the server and go to localhost:8000
- run
cargo test -- --test-threads=1
See in the infra repository