Hello,
If you're reading this, your awesome.
The prototype is a super light-weight node.js application. Getting up and running is easy:
- Install node if you don't yet have it > node.js installer;
- Check out this repo to a directory somewhere
~/sites/nzta
for instance. - Run
npm install
- Start the site with
grunt
- Visit
http://localhost:3012
in your browser
We've utilised the nunjucks templating engine. It's a really nice Javascript templating engine that runs server-side in node.js, and in the browser. This allows us to render the same views in both places, and share a common syntax. The nunjucks browser-based loader is included automatically in the core Javascript.
We've described the forms using some hack-ish javascript in routes/forms/
Static content pages are generated from JSON files pages
directory.
Most of the pages have a template, these live in templates/pages
grunt watch
to build the JS/CSS and develop.grunt js
to build the JSgrunt sass
to compile sassgrunt icon
to compile icons (via grunticon)grunt all
to generate everything