See "engines"
in package.json for minimum version requirements (for example node
and npm
).
Contribute using GitHub flow, once new Pull request is created, GitHub Workflows are started and jobs consisting of building and testing are executed.
First prepare project locally:
git clone <yourGitForkUrl> pnc-api-mocks
cd ./pnc-api-mocks/
npm install
To start the mock backend:
npm start # runs the server on http://localhost:8020
In order to create an endpoint for some data, follow these steps.
Create JavaScript file in the mocks
directory representing one endpoint. The file needs to export array of entities (using module.exports
). See, for example, product-milestone-statistics.js