Skip to content

open-contracting-partnership/ocp-form-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCP form server

This project handles Github authentication and creates Pull Requests for OCP forms. Please check that repo for more information.

This project is a fork of a Blue Pencil server.

Requirements

These dependencies are needed to build the app.

  • Node (v4.2.x) & Npm (nvm usage is advised)

The versions mentioned are the ones used during development. It could work with newer ones. Run nvm use to activate the correct version.

Setup

Install dependencies:

$ npm install

GitHub token For the app to work a GitHub token is needed. Add it to the local config file:

{
  ghToken: '<token>'
}

or use the GH_TOKEN env variable.

GitHub repo The repo being used for data storage is defined in the config file:

{
  ghUser: '<user>',
  ghRepo: '<repo>'
}

Running the App

npm run start-dev

This will start the app at http://localhost:3000. This command starts the server with nodemon which watches files and restarts when there's a change.

npm run start

This command runs the app in production mode.