This project is a backend repository for OSS-Compass, based on Rails 7 and Ruby 3.
You need to do few small steps to run the app
git clone https://github.com/open-metrics-code/compass-web-service
cd compass-web-service
cp .env.example .env.local
Environment variables defined here(.env
), feel free to change or add variables as needed.
This file is ignored from git (Check .gitignore
) so it will never be commit.
If you use different values for environment variables in other envs, e.g. test, you need to copy one more: .env.test.local
Note .env.test
is used by github workflows.
create databases
rails db:setup
database migration
rails db:migrate
rails s
Start a scheduled task service to regularly update project reports as well as summary reports.
bundle exec crono -e development
Start an asynchronous task queue for use in checking repository validity and handling exceptional requests, etc.
bundle exec rake rabbitmq:start