Sign inSign up

thibautgery/rustipe-desiel

By thibautgery

•Updated almost 6 years ago

Image
0

247

thibautgery/rustipe-desiel repository overview

⁠Recipe API

API to expose recipe stored in Postgres

⁠Requirements

⁠Rust

Install RUST⁠:

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
⁠Docker

Install Docker⁠

# run dependencies
docker-compose up

⁠Commands

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

⁠Run locally

⁠Server
⁠Tests
  • run cargo test -- --test-threads=1

⁠Deploy the app

See in the infra repository⁠

Tag summary

Content type

Image

Digest

Size

582.4 MB

Last updated

almost 6 years ago

docker pull thibautgery/rustipe-desiel