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
Size: 1625
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Install the dependencies required to run the service:
rn
Supply environment variables. The required environment variables are defined in server/config.js.
Start the server
rn run start
Or, for development, run inspections, tests, watch for changes and start the server:
rn run dev
Visit localhost:3000
yarn run lint
-> style checks using eslintyarn run test
-> runs all unit testsyarn run clean
-> cleans previously generated filesyarn run build
-> cleans and regenerates assets.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
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 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>
Execute seed scripts to populate DB with test data
seed
Create a new seed file
run knex seed:make <script-name>
TE DATABASE licences CONTAINMENT = PARTIAL