angularjs-requirejs-boilerplate
angularjs-requirejs-boilerplate copied to clipboard
A complete angularjs requirejs boilerplate for node.
angularjs-requirejs-boilerplate
A complete angularjs requirejs boilerplate for node.
There are angular and test samples in the project, you can quick start your new project with angularjs-requirejs-boilerplate.
Features
Front-end
- angularjs, a JavaScript MVW Framework
- bootstrap, the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web
- jquery, the Write Less, Do More, JavaScript Library
- less, a CSS pre-processor
- requirejs, a JavaScript file and module loader
- etc
Back-end
- expressjs, sinatra inspired web development framework for node.js
- gulp, the streaming build system
- swig, a simple, powerful, and extendable JavaScript Template Engine
- etc
Quick Start
Install Dependencies:
$ bower install
$ npm install
Development
Development Environment using gulp-nodemon, browser-sync and gulp-jshint.
- Make sure isDevMode configuration is true in locals.js
- Start development mode with
gulp --development - Input
http://localhost:devPortwith browsers
Production
- Make sure isDevMode configuration is false in locals.js
- Compile and build with
gulp --production - Start the server with node or pm2 or others
- Input
http://localhost:portwith browsers
Configuration
System configuration are stored in the locals.js file.
Samples Page
Start the server and input http://localhost:port/samples with browsers.
Gulp
Show task list with gulp help.
Test
Test using karma and jasmine, run the test with npm test or karma start. Unit and coverage test report are stored in report directory.
Changelog
2.3.0
- watch gulp files
- the browser reload while restart nodemon
27.01.2016
2.2.1
- fix task can not separate execution with development mode
25.01.2016
2.2.0
- add build-templates task to optimize ngTemplates that registers AngularJS templates in the $templateCache
- add error and listening event to server
17.01.2016
2.1.0
- replace gulp-livereload with browser-sync
- add gulp-help, gulp-size and others gulp components
- remove less.js
10.01.2016
2.0.0
- adjust directory and code of project
- add angular samples page
- add README.md preview
01.01.2016
1.1.1
- fix mobile can not redirect
- fix can not define custom router
18.11.2015
1.1.0
- add gulp task named build-views that registers AngularJS templates in the $templateCache
- add karma and size into gulpfile
- replace chrome launcher with phantomjs launcher in karma
- modify layout launcher and suffix of templateUrl
31.10.2015
1.0.0
- initial release
18.10.2015