Skip to content

slovensko-digital/govbox-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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=[email protected]
  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)