Todo Backend - Hanami Implementation
Sample implementation for Todo-Backend using Hanami and Postgres.
There is a docker container to run a Postgres instance in for local development.
You'll need Docker and Docker compose installed to use it.
docker-compose up -d
How to run tests:
% bundle exec rspec
How to run the development console:
% bundle exec hanami console
How to run the development server:
% bundle exec hanami server
How to prepare (create and migrate) DB for
% bundle exec hanami db prepare % HANAMI_ENV=test bundle exec hanami db prepare
If for some reason you want to actually deploy this you'll need to ensure the
BASE_URL environment variable is set on your server.