This is a simple implementation of the Todo-Backend API spec. It persists todos in a Postgres database.
It is running live at http://nickel-todo-backend.herokuapp.com/todos. You can point a todo-backend client at that live instance to play with it. You can also run the Todo-Backend specs against that live instance to confirm that it complies with the Todo-Backend API spec.
SITE_ROOT_URL="__BASE_URL__" DATABASE_URL="__DB_INFO__" cargo run --release
// Run tests against localhost:6767
// If running the tests from the website remotely I recommend using `ngrok`
These are roughly the commands required (not verified recently)
git clone https://github.com/Ryman/nickel-todo-backend
cd nickel-todo-backend
// See https://devcenter.heroku.com/articles/creating-apps
heroku create
heroku config:set BUILDPACK_URL="https://github.com/Ryman/heroku-buildpack-rust.git"
heroku config:set DATABASE_URL="__PROBABLY_A_COPY_OF_HEROKU_POSTGRESQL_AQUA_URL__"
heroku config:set SITE_ROOT_URL="http://nickel-todo-backend.herokuapp.com"
// git push heroku etc etc
MIT
Sinatra version for original influence.