- Ruby version
- Ruby 3.1.2
- System dependencies
- MySQL
- NodeJs
- Install
rvm
following these instructions: https://rvm.io/rvm/install - Install
ruby 3.1.2
by following the RVM instruction, found here https://rvm.io/rubies/installing - Install all necessary gems by running:
bundle install
- Install Node(version used was v14.16.1) by running by following these instructions https://nodejs.org/en/download/ and then:
- Install Yarn by running
npm install --global yarn
- Run yarn to install node_modules by running
yarn
- Install Yarn by running
- Database creation
Setup the Database by running:
rake db:create
- Database initialization
- Run database migrations by running:
rake db:migrate
- Run test migrations as well:
rails db:test:prepare
- Run database migrations by running:
To run tests simply run:
rspec
Simply run rails s
and then visit http://localhost:3000/