- Sendgrid to send emails (access in the AAB passpack)
- Rollbar to monitor production errors (access in the AAB passpack)
- RSpec as test framework
- Fabrication as factory for specs
- Faker to generate fake data
-
Install PostgreSQL v. 13.3
-
Start postgresql
- Example on macOS (brew instalation):
pg_ctl -D /usr/local/var/postgres start
- Example on macOS (brew instalation):
-
Check
config/database.yml
for further information -
You may need to install the
lipq-dev
on Linux environmentssudo apt install postgresql libpq-dev
-
Install rvm or rbenv - the main development team is using rvm
-
If you choose rvm then - Install the correct version (the examples will use the ruby-3.1.2)
rvm install ruby-3.1.2
- Create the gemset to the project under the correct version
- In the project folder run:
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
- Check Github Actions
-
The build relies on
rspec
andrubocop
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