npm install -g yo
npm update -g yo
npm install -g generator-angular-fullstack
npm update -g generator-angular-fullstack
yo angular-fullstack [name] // creates ng-app="nameApp", if blank uses curdir
I chose yes to add bootstrap, no for scss authoring, angular-resource (ngResource) and angular-route (ngRoute) and yes for mongoose/mongodb
add angular-bootstrap (angular directives for twitter bootstrap)
bower install angular-bootstrap --save
Github page for the angular-fullstack generator here:
bower install angular-bootstrap --save
run karma tests
grunt karma
get rid of the missing file warning by commenting out the following line from the files array:
'test/mock/**/*.js',
grab phantom.js for headless testing
http://phantomjs.org/download.html
configure karma to run Phantom.js instead of Chrome to
in karma.conf.js change browsers array to PhantomJS
run karma tests again to validate there are no warnings, and we're running through Phantom.js
grunt karma
serve angular app
grunt servergrunt karma
get rid of the missing file warning by commenting out the following line from the files array:
'test/mock/**/*.js',
grab phantom.js for headless testing
http://phantomjs.org/download.html
configure karma to run Phantom.js instead of Chrome to
in karma.conf.js change browsers array to PhantomJS
run karma tests again to validate there are no warnings, and we're running through Phantom.js
grunt karma
serve angular app
Github page for the angular-fullstack generator here:
No comments:
Post a Comment