Skip to content
master
Go to file
Code

Latest commit

Elliott Davis
Signed-off-by: Elliott Davis <elliott@excellent.io>
e3cff2d

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Rocket Diesel Demo

This is a PoC app demonstrating how Rocket and Diesel work together.

Prerequisites

Postgres must be running and have the rocket-diesel-demo db created

Setup

cargo run -- --config habitat/default.toml
curl localhost:8000/hello -d '{"name":"bar"}' -H "Content-Type: application/json"
curl localhost:8000/world

Development

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

Build with your own Habitat origin

  • Run HAB_STUDIO_NOSTUDIORC=1 hab studio enter
  • build
  • hab pkg upload $HAB_ORIGIN/rocket-diesel-demo

About

This is a PoC app demonstrating how Rocket and Diesel work together.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.