A skeleton that allows sites to be created with everything that they need to get up and running quickly with minimum fuss.
This repository is for any code and features that are generic and applicabele to every site that we generate. No site-specific files, colours or configurations should be committed.
- JavaScript
- Node.JS
- Handlebars
- ExpressJS
- ESLint
/
+-- .husky - contains custom git hooks
+-- config - contains sample configuration files
+-- lib - contains general helper modules and classes
+-- public - contains static content served directly
+-- routes - contains Express routers
+-- views - contains handlebars view files
| +-- layouts - contains handlebars layout files
| +-- partials - contains handlebars partials
+-- app.js - the entry point for the application
- Node.JS
- NPM
- gulp-cli (to install this run
npm install -g gulp-cli
as a priviledged user)
- Create a new repository using this one as a template
- Clone this new repository to your development environment
- Using a command line, run
npm install
- this will install all of the dependencies for the site and the custom git hooks - Using a command line, run
gulp
. This will:- Copy all sample configurations to their non-sample counterpart
- Prompt you to edit the config values to suit your environment
- Prompt you to overwrite the template readme with a site specific one