Version in PORTUGUESE
This is a Rails 5.2.x application.
This README describes the goal of this repository and how to configure the development environment. There are also other documentation sources as follow:
Ruby 2.6.4, preferably managed using Rbenv
PostgreSQL must be installed and accepting connections.
Docker and Docker Compose (optional)
You can use Docker and Docker Compose to run this project on development or test mode.
If you need help to configure the Ruby development environment, consult this Rails OS X installation guide.
bin/setup
Execute the bin/setup script. This script will:
- Verify if the necessary Ruby version is installed
- Install the gems using Bundler
- Create local copies of
.env
anddatabase.yml
- Create, migrate and populate the database
- Run!
- Run the
bin/rake test
to guarantee that everything is working fine. - Run
bin/rake test:system
to execute every system tests. - Run
bin/rails
After you have installed Docker and Docker Compose, run the commands below:
docker-compose build
to create the Docker Imagesdocker-compose run web bash
to open ashell
inside the container with the application already setup
Within this shell
you must setup the application database before running other
commands. To do so, run: bin/setup
To run the application, run:
rails server -b 0.0.0.0