Install Node.js (see requirements)
git clone [email protected]:alphagov/govuk_prototype_kit.git
npm install
This will install folders containing programs described by the package.json file to a folder called node_modules
.
node start.js
Go to localhost:3000 in your browser.
Any code changes should update in the browser without you restarting the app.
The app recompiles app/assets/stylesheets/application.scss everytime changes are observed.
Find out how to work with the prototyping application.
- Getting started (Read this first)
- Creating routes
- Making pages
- Writing CSS
- Deploying (getting your work online)
- Tips and Tricks
This project is built on top of Express, the idea is that it is straightforward to create simple static pages out of the box. However, you're not limited to that - more dynamic sites can be built with more understanding of Express. Here's a good Express tutorial.
-
Define a service under
app/services.js
. This includes which payment types should be available for this service, and its display name, etc. -
Land the service's own prototype at
https://username:[email protected]/landing?service=name&amount=100&return_url=http://other.service.gov.uk
. This will begin a journey through the Payments Prototype and at the end, return you to thereturn_url
you specify.