angularjs-requirejs-boilerplate Bower gulp karma npm

A complete angularjs requirejs boilerplate for node.

2 years after

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.

  1. Make sure isDevMode configuration is true in locals.js
  2. Start development mode with gulp --development
  3. Input http://localhost:devPort with browsers

Production

  1. Make sure isDevMode configuration is false in locals.js
  2. Compile and build with gulp --production
  3. Start the server with node or pm2 or others
  4. Input http://localhost:port with 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

License

MIT

Related Repositories

awesome-angularjs

awesome-angularjs

:cyclone: A list of awesome AngularJs services, directives, utilities and resour ...

angularjs-ee-boilerplate

angularjs-ee-boilerplate

angularjs enterprise edition boilerplate ...

grunt-requirejs-angularjs-sass-boilerplate

grunt-requirejs-angularjs-sass-boilerplate

A boilerplate for Grunt, RequireJS, AngularJS, and SASS. ...

AngularJS-Learning

AngularJS-Learning

A bunch of links to blog posts, articles, videos, etc for learning AngularJS ...

angular-requirejs-gulp-express-mongodb-seed

angular-requirejs-gulp-express-mongodb-seed

MEAN using RequireJS Seed ...


Top Contributors

ipluser

Releases

-   2.3.0 zip tar
-   2.2.1 zip tar
-   2.2.0 zip tar
-   2.1.0 zip tar
-   2.0.0 zip tar
-   1.1.1 zip tar
-   1.1.0 zip tar
-   1.0.0 zip tar