Skip to content
Hanami Implementation of Todo-Backend
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps/api
config
db/migrations
lib
public
spec
.env.development
.env.test
.gitignore
.hanamirc
.rspec
.ruby-version
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru
docker-compose.yml

README.md

Todo Backend - Hanami Implementation

Sample implementation for Todo-Backend using Hanami and Postgres.

Setup

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 development and test environments:

% bundle exec hanami db prepare

% HANAMI_ENV=test bundle exec hanami db prepare

Deployment

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.

Explore Hanami guides, API docs, or jump in chat for help. Enjoy! 🌸

You can’t perform that action at this time.