Skip to content

defencedigital/moduk-service-manual

Repository files navigation

Netlify Status

Defence Service Manual

Helping you meet service standards and do your role in Defence.

Install the long-term support (LTS) version of Node.js, which includes npm.

Run app for development

1. Clone repo

git clone https://github.com/defencedigital/moduk-service-manual.git moduk-service-manual

2. Navigate to project folder

cd moduk-service-manual

3. Install npm packages

npm install

5. Run app

Watch for changes to CSS, JS, Images, Nunjucks or Markdown. Automatically update the browser, without the need for a manual refresh.

npm run dev

Visit: http://localhost:8080

Test app for HTML errors

Performs a W3C validation on HTML, to ensure everything is valid.

npm run test

Build app for production

Render CSS, JS, Images, Nunjucks. Compress files and generates HTML pages, ready for production.

npm run prod