Further details and guidance for using this kit for prototypes and releases for MTS can be found internally in Confluence by searching for front-end.
You can view the MOT component library and prototypes here:
If you'd like to access the Prototypes pages, log in as below. The prototype system is password protected to prevent users accidentally accessing what may look like a real Government Service.
Clone this repo and cd into the directory using terminal
Install dependencies using NPM
docker-compose run app npm install
To run development mode run the following command inside the directory.
You can access the local server with the following url
It will automatically run the following processess concurrently
- gulp start-dev task
- webpack with development configurations
- express application with nodemon
Build production command will generate production ready assets and node js server code.
The productions assets are located in the dist/assets folder and the server code is located in the dist/server folder.
docker-compose run app npm run build-production
Run this command and commit changes before pushing to heroku.
Docker setup for development
You will need the latest version of docker installed
Running development mode
For faster development you can use docker by running the following command:
After which the server is located at the local address below:
Building production assets
Run the following command
docker-compose run --rm app npm run build-production