Skip to content

ThibautGeriz/rustipe

Repository files navigation

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

  • run cargo run --bin web_server to start the server and go to localhost:8000

Tests

  • run cargo test -- --test-threads=1

Deploy the app

See in the infra repository

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages