Skip to content

paulrichards19/require-backbone-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

require-backbone-template

This is a base template that includes the following features already configured based on nodejs.

  • NodeJS
  • Express server to run the project
  • requirejs with text plugin
  • BackBone
  • Lodash
  • Twitter Bootstrap v3.x
  • jQuery
  • less support
  • Grunt to complile it into 1 js/css file with mapping files

Installation

You need grunt installed globally:

$ npm install -g grunt

Git clone the code to your system and install

$ git clone https://github.com/paulrichards19/require-backbone-template.git
$ cd require-backbone-template
$ npm install

Usage

To run the server:

$ node server.js

Go to http://localhost:3001/index.html to view site. public/js/app can contain all the backbone files. Main.js has the configuration and public/js/app/App.js is the application entry point.

Grunt build process

To build all files in to optimized JavaScript and CSS run:

$ grunt

You can then find all the files in the build folder.

Grunt watch to build less file in development

$ grunt buildless

This will watch /public/css/less directory for changes and update /public/css/styles.css.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published