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
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
.
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
To finish, it is necessary to execute:
docker-compose down