Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (34 loc) · 878 Bytes

README.md

File metadata and controls

56 lines (34 loc) · 878 Bytes

fb-runner-node

This Form Builder Runner repository is the backend which powers the forms which are deployed.

Pre-requisites

Node

Installing

git clone git@github.com:ministryofjustice/fb-runner-node.git
cd fb-runner-node
npm install

Usage

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

Service data

By default, the runner expects service data to be mounted at servicedata in its root directory.

Testing

npm test

Run unit tests only

npm run test:unit

Run linting only

npm run lint

Faked-up pages

Start page

Test page

To deploy and run on Cloud Platforms

See deployment instructions