Skip to content

samuelbwr/nodejs-boilerplate

 
 

Repository files navigation

nodejs-boilerplate Build Status

Create Apps and Static Websites with this Node.JS boilerplate.

Getting Started

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

Build Static HTML

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.

Project Structure

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.

License

MIT

About

Create Apps with Node.JS + Express 4 and Handlebars.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 48.2%
  • HTML 41.6%
  • CSS 10.2%