- 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=your-g-suite-sign-up-email@gmail.com
- 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
GOOGLE_CLIENT_ID=some-numbers-and-characters.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-and-other-secret-part
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)