Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

francoborrelli/TTPS-Ruby

Repository files navigation

TTPS Ruby 2017

Rails Docker Heroku

Requirements

Installing the Project

To install the project, it's necessary to open the terminal and execute the following commands:

git clone git@github.com:francoborrelli/TTPS-Ruby.git
cd TTPS-Ruby
docker-compose build

Running the Project

To run the project, you need to be positioned in the project folder and execute the commands:

docker-compose up -d
docker-compose exec web rails db:setup

Once this is done, you can access the site from http://localhost:3000, with the username admin and the password 123456.

Running the Tests

To run all tests together using the command:

docker-compose exec web rails test

To run them one by one:

docker-compose exec web rails test test/models/course_test.rb
docker-compose exec web rails test test/models/examination_test.rb
docker-compose exec web rails test test/models/student_test.rb
docker-compose exec web rails test test/models/score_test.rb

Finishing

To finish, it is necessary to execute:

docker-compose down