Install PostgreSQL v. 13.3
Start postgresql
pg_ctl -D /usr/local/var/postgres start
Check config/database.yml
for further information
You may need to install the lipq-dev
on Linux environments
sudo apt install postgresql libpq-dev
Install rvm or rbenv - the main development team is using rvm
If you choose rvm then
rvm install ruby-3.1.2
rvm use 3.1.2@event_registrations --create
rvm --ruby-version use 3.1.2
gem install bundler
bundle install
In the project folder run:
rake db:create
rake db:migrate
rake db:create RAILS_ENV=test
rake db:migrate RAILS_ENV=test
CI/CD: Github actions
The build relies on rspec
and rubocop
success
In the project folder you should be able to run and check the output of:
rspec
rubocop -A
Run console: rails c
Run server: rails s