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 up
cargo 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
cargo run --bin web_server to start the server and go to localhost:8000cargo test -- --test-threads=1See in the infra repository
Content type
Image
Digest
Size
40.7 MB
Last updated
almost 6 years ago
docker pull thibautgery/rustipe