- Clone this repo locally:
[email protected]:department-for-transport-public/findtransportdata-prototypes.git
- Set up your SSH keys: https://docs.github.com/en/authentication/connecting-to-github-with-ssh
- Check the version of Node installed:
node --version
, this needs at least Node 18.x.x, if less, update to the latest - Install the Node dependencies:
npm install
- Run:
npm run dev
- Open up
localhost:3000
in your browser
- Add .html file to the app/views folder.
- Add
{% extends "layouts/main.html" %}
on top of the .html file. - To add a component, import it from govuk/components, e.g.
{% from "govuk/components/button/macro.njk" import govukButton %}
on top of the .html files. - For more components, visit the following link:
https://design-system.service.gov.uk/get-started/prototyping/
- For more information, look for the pages that have already been created.
- To access the newly created page, define a route in the app/routes.js file; an example is already added there.