GOV.UK Candidate Listing
This is a Demo web page built using the GOV.UK Frontend Toolkit and React.
Getting Started
-
You will need to have the following installed on your system:
- node (>=v4.0.0)
- Google Chrome (to run the unit tests)
-
Clone the repo locally:
git clone https://github.com/chris-alexander/candidate-listing.git
-
cd
into the directory where it was cloned:cd candidate-listing
-
Install the dependencies:
npm install
Development
Run npm start
to serve the development version of the web page.
Open a browser and navigate to http://localhost:8080/ to view it.
As you make changes to the source code the page will update.
Production
Run npm run build
to compile a production version of the web page. The compiled code will be output into the dist
folder.
You can serve the page by running npm run serve
and it will be available at http://localhost:3000. You can change the port by adding -- --port
followed by the 4 digit port number e.g. npm run serve -- --port 8081
.
A pre-compiled production version is available to view here: https://chris-alexander.github.io/candidate-listing
Tests
Run npm test
to run the unit tests