Project developed with the aim of fulfilling the requirements of the configuration management and software testing discipline of the TST-IMD IT residency.
The application proposes to consume the TST's schedules and trials data API.
2.7.0
gem install rails
sudo apt -y install postgresql postgresql-contrib
sudo passwd postgres
sudo service postgresql start
sudo -sudo -u postgres psql
# postgres=# CREATE ROLE your_username;
# postgres=# ALTER ROLE your_username WITH LOGIN SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION;
# postgres=# SET ROLE your_username;
# postgres=# GRANT postgres TO your_username;
# postgres=# CREATE DATABASE your_username ENCODING 'UTF8' TEMPLATE template0 OWNER your_username;
# postgres=# \q
Tip: change your_username
above to your username and substitute the line username: postgres
on config/database.yml
to same user.
sudo apt install libpq-dev
gem install bundler:2.2.14
bundle install
rails db:setup
rails db:migrate
rspec
Open rails console:
rails console
Run the extractor:
SchedulesExtractor.new.call()