- ruby (version is specified in .tool-versions)
- PostgreSQL 14
- node.js (version is specified in .tool-versions)
- create own env file
cp .env .env.local
- setup db connection in
.env.local
, example:
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=postgres
- setup an email with which you will sign in in
.env.local
SITE_ADMIN_EMAILS=[email protected]
- install deps and setup database with
bin/setup
- install javascript deps with
yarn
- run local environment
bin/dev
- run tests with
bin/rails test
- run console
bin/rails c
- Get / Create OAuth permissions by guide
- don't forget to Add an Authorized Redirect URI
http://localhost:3000/auth/google_oauth2/callback
- don't forget to Add an Authorized Redirect URI
- write permissions to
.env.local
, example:
GOOGLE_CLIENT_ID=some-numbers-and-characters.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-and-other-secret-part
- we use Good Jobs
- settings in env
ADMIN_IDS=1 # set your user_id be able to see dashboard
GOOD_JOB_EXECUTION_MODE=async # make job runs along rails server (default)
- your public IP has to be added to whitelist (ask colleague)
- in rails console run
Govbox::SyncBoxJob.perform_later(Box.last)