This is a PoC of using Rocket and Diesel to replace the current Habitat Builder API.
Postgres must be running and have the builder
db created
cargo run -- --config habitat/default.toml
curl localhost:8000/hello -d '{"name":"bar"}' -H "Content-Type: application/json"
curl localhost:8000/world
This project uses Habitat for development. Follow the instructions on setting up Habitat locally and come back.
- Run
hab studio enter
to enter a development clean room. build-api
- Build a new version of the api-
- It will automatically be reloaded for you
- Run
HAB_STUDIO_NOSTUDIORC=1 hab studio enter
build
hab pkg upload $HAB_ORIGIN/rocket-diesel-demo