Simple boilerplate to offer structure when starting a new project.
The structure of the app is primary based off of how Brunch.io structures Chaplin apps; the main difference here is that I have replaced Brunch with Grunt.
- Backbone.js
- Bower
- Chaplin.js
- Coffeescript
- Grunt.js
- Handlebars.js
- Normalize.css
- Nib
- Node.js
- Stylus
- Underscore.js
First clone this repo.
You will need Node.js in order to complete the following steps. Please install Node.js if you have not done so.
Install these dependencies globally if you have not done so:
npm install -g bower coffee-script grunt-cli
Then install these dependencies locally (run from root of this project):
npm install
Now let's get some dependencies from Bower:
grunt bower
You'll need two tabs. The reason I do this is because node usually ends up running behind a web server such as Nginx which involves splitting the server and build process from each other anyway.
The first tab starts the node server:
node server.js
The second tab builds and watches the project:
grunt w
- Make installing dependencies one command.