Create Apps and Static Websites with this Node.JS boilerplate.
The easiest way to get started is to clone the repository:
# Get the latest snapshot
$ git clone --depth=1 https://github.com/pinceladasdaweb/nodejs-boilerplate.git myproject
$ cd myproject
$ git remote rm origin
# Install NPM dependencies
$ npm install
$ npm start
The idea of this is boilerplate also generate a static HTML pages generated by all Node.js. For that use Grunt and Assemble and run Grunt task:
$ grunt build
The "build" directory is where will all static HTML generated by this boilerplate along with the assets files (JavaScript, CSS and Images). The .htaccess file is responsible for doing the rewrite your URL's assets.
Name | Description |
---|---|
config/ | General server configuration and initialization. |
controllers/ | Application's controllers. |
models/ | Application's model. |
helpers/ | Handlebars helpers. |
middleware/ | Express middlewares. |
public/ | Static assets (fonts, css, js, img). |
routes/ | Routes for this project. |
test/ | Tests. |
views/ | Views and Partials for this project. |