Backend for the SimpleToDo app.
- Install Ruby base with
bundle
- Install node base with
npm i
- Initialize Docker environment for PostgreSQL support
docker-compose pull
docker-compose build
- Run Docker environment with
docker-compose up -d
- Create development database with
bundle exec rake db:create db:migrate
- Run Puma server with
bundle exec puma
- The service API will be served under
http://0.0.0.0:9292
- Create test database with
RACK_ENV=test bundle exec rake db:create db:migrate
- Run tests with
bundle exec rake
This will automatically create the test coverage overview
(coverage/index.html
) and the interactive API documentation (openapi/api-doc.html
).