Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.37 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.37 KB

Feed The Hungry Backend

Build Status codecov Maintainability

This project aims to serve an GraphQL API about a RSS feed, which through will be added feed, kinds, categories and fetch entries!

Setup

Technologies

This project uses Ruby 3.1, Hanami and PostgreSQL.

Docker

I've created a Dockerfile and docker-compose.yml to be better to maintain all the dependencies.

So, to build the image, you need to run the following command:

$ docker-compose build app

Development

How to run tests:

% docker-compose run --rm runner bundle exec rake

How to run the development console:

% docker-compose run --rm runner bundle exec hanami console

How to run the development server:

% docker-compose up web

How to prepare (create and migrate) DB for development and test environments:

% docker-compose run --rm runner bundle exec hanami db prepare

% docker-compose -e HANAMI_ENV=test run --rm runner bundle exec hanami db prepare