generator-hmrcnodeprototypenunjucks
v0.0.13
Published
A generator for Yeoman with HMRC template to will kick start a Node Application using Express and Nunjuck engind and templates.
Downloads
9
Readme
generator-hmrcnodeprototypenunjucks
Yeoman template to generate an initial node Express prototype using the govuk frontend toolkit with Nunjuck templating
Getting Started
What is Yeoman?
From the default Yeoman Generator:
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
To install Yeoman you will need to have npm (node packaged modules) installed.
Once Node is installed you'll have access to npm so you can use this to install Yeoman.
$ npm install -g yo
The -g means that you are installing Yeoman globally. If you wish to uninstall Yeoman you can do so with this command.
$ npm uninstall -g yo
Installing this generator
With Node and npm installed run this to install.
$ npm install -g generator-hmrcnodeprototypenunjucks
Using this generator
With the generator installed it is time to run it. Create a directory on your computer somewhere and cd into it via the terminal. Then run:
$ yo hmrcnodeprototypenunjucks
Optional starting of the application on completion
When you run the yo command above you have the option to launch the application on completion. If you answer yes the application we be started on port 3000 and you can launch it immediatley in your broswer by going to http://localhost:3000
License
This code is open source software licensed under the Apache 2.0 License.