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/worldThis project uses Habitat for development. Follow the instructions on setting up Habitat locally and come back.
- Run
hab studio enterto 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 buildhab pkg upload $HAB_ORIGIN/rocket-diesel-demo