Challenge

O desafio é fazer um TO DO List

Specifications

  • Poder criar várias listas de TO DO
  • Cada lista tem que poder ser adicionado vários itens

Setup Ruby (only if you have not installed)

This project uses asdf.
Follow the installation instructions

After installation you need to follow these steps:

# Add ruby plugin on asdf
$ asdf plugin add ruby

# Install ruby plugin
$ asdf install ruby 3.0.3

# Set the default ruby for the project
$ asdf local ruby 3.0.3

Setup Project

# install bundler
$ gem install bundler

# run bundle to install gems
$ bundle

Database initialization

Create a new file config/application.yml based on the template file config/application.sample.yml.

Fill the default section with your database credentials.

# turn on docker
$ docker-compose up -d

# setup database
$ bin/rails db:setup

# run migrations
$ bin/rails db:migrate

Run tests

# run rspec
$ bundle exec rspec

Start Project

# turn on docker
$ docker-compose up -d

# run rails server
$ bin/rails server