This prototype is built using the GOV.UK Prototype Rig.
- Node.js v16
-
Clone this repository:
git clone git@github.com:communitiesuk/submit-social-housing-lettings-and-sales-data-prototype.git
-
Install the dependencies:
npm install
-
Start the application:
npm start
To automatically refresh the browser upon updating a file, use npm run dev
.
The prototype includes datasets for organisation and schemes. Source datasets can be found in app/datasets
.
The data for organisations is partially based on the list of Registered providers of social housing, and both sets of data are embellished with faked values generated using Faker.
To generate organisation and scheme data for the application, run the following npm tasks (code for which can be found in /scripts
):
npm run generate-datasets
- Generate all organisation and schemes datanpm run generate-organisations
- Generate organisation data onlynpm run generate-schemes
- Generate schemes data only
Generated data is saved to app/data/generated
.
To lint JavaScript and CSS files, use npm run lint
.