Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.62 KB

DEVELOPER.md

File metadata and controls

59 lines (44 loc) · 1.62 KB

GovBox Pro

Requirements

Instalation steps

  1. create own env file cp .env .env.local
  2. setup db connection in .env.local, example:
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=postgres
  1. setup an email with which you will sign in in .env.local
SITE_ADMIN_EMAILS=your-g-suite-sign-up-email@gmail.com
  1. install deps and setup database with bin/setup
  2. install javascript deps with yarn

Running commands

  • run local environment bin/dev
  • run tests with bin/rails test
  • run console bin/rails c

Application Setup

Google OAuth2

GOOGLE_CLIENT_ID=some-numbers-and-characters.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-and-other-secret-part

Async Jobs

ADMIN_IDS=1 # set your user_id be able to see dashboard
GOOD_JOB_EXECUTION_MODE=async # make job runs along rails server (default)

Getting sample data

  • your public IP has to be added to whitelist (ask colleague)
  • in rails console run Govbox::SyncBoxJob.perform_later(Box.last)