angularjs-requirejs-boilerplate
An 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, gulp-livereload and gulp-jshint.
- Make sure isDevMode configuration is true in locals.js
- Install livereload chrome extension
- Start the server with
gulp start-develop
Production
- Make sure isDevMode configuration is false in locals.js
- Compile and build with
gulp
- Start the server with node or pm2 or others
Configuration
System configuration are stored in the locals.js file.
Samples Page
Start the server and input http://localhost:8099/samples
with browsers.
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.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
License
MIT