noms-digital-studio/licences

Name: licences

Owner: NOMS Digital Studio

Description: Licences web-app

Created: 2017-09-18 06:44:53.0

Updated: 2018-05-24 12:07:03.0

Pushed: 2018-05-24 12:07:04.0

Homepage:

Size: 1625

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Licences Application UI.

CircleCI Known Vulnerabilities

Get Started

  1. Install the dependencies required to run the service:

    rn
    
  2. Supply environment variables. The required environment variables are defined in server/config.js.

  3. Start the server

    rn run start
    

    Or, for development, run inspections, tests, watch for changes and start the server:

    rn run dev
    
  4. Visit localhost:3000

Developer Commands

Environment variables

The following environment variables are used and values should be supplied for correct operation but have defaults.

For the database:

For the PDF generator service

AWS database access

When accessing the AWS Postgres databases eg for the stage env, SSL must be enabled (DB_SSL_ENABLED=true) and you need a file in the root of the project called root.cert containing the AWS RDS root certificate

see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html

Migrations

Migrations are managed using knex and knex-migrate

Execute migration

 migrate

Other migration commands

 run knex-migrate <command>

Commands

Create a new migration script

 run knex migrate:make <script-name>
Seed data

Execute seed scripts to populate DB with test data

 seed

Create a new seed file

 run knex seed:make <script-name>
Local database set up
TE DATABASE licences CONTAINMENT = PARTIAL

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.