Skip to content

slovensko-digital/govbox-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2259084 · Sep 18, 2023
May 26, 2023
Jun 28, 2023
Jun 20, 2023
Sep 18, 2023
Aug 8, 2023
Jun 28, 2023
Sep 18, 2023
Sep 18, 2023
May 3, 2023
Feb 27, 2023
Feb 27, 2023
May 30, 2023
May 26, 2023
Mar 29, 2023
Sep 18, 2023
Feb 27, 2023
Feb 27, 2023
Aug 8, 2023
May 26, 2023
Feb 27, 2023
Sep 18, 2023
May 24, 2023
May 18, 2023
May 26, 2023
Jun 21, 2023
Jun 21, 2023
Aug 8, 2023
May 26, 2023
Jun 1, 2023
Jun 1, 2023
Aug 8, 2023
Feb 27, 2023
Apr 19, 2023
Jun 28, 2023
Aug 8, 2023
Jun 15, 2023
Jun 15, 2023

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)