This Form Builder Runner repository is the backend which powers the forms which are deployed.
git clone git@github.com:ministryofjustice/fb-runner-node.git
cd fb-runner-node
npm install
Set the SERVICE_PATH
environment variable to point the the path of a form on your filesystem.
SERVICE_PATH=~/Documents/formbuilder/forms/my-test-form-1 npm start
By default, the runner expects service data to be mounted at servicedata
in its root directory.
npm test
Run unit tests only
npm run test:unit
Run linting only
npm run lint