#angular-fullstack-tokens This is a fork of daftfmonk's excellent generator-angular-fullstack. Its main difference is it uses token-based authorization for ease of use in a service environment.
It is not a generator; rather, it is an already-generated skeleton or "seed" project for the following technologies:
- angularjs
- nodejs
- express
- passport with Json Web Tokens
- SASS/Compass
- Angular-translate (for localization)
TODO: Replace Angular-translate with Angular-Localization
To use, clone repo, then run npm install, then bower install.
To launch the server, run grunt serve.
grunt serve will watch client files in app/, and server files inside lib/, restarting the Express server when a change is detected.
To generate a dist folder that can easily be deployed use:
gruntThis will run unit tests, jshint, concatenate and minify scripts/css, compress images, add css vendor prefixes, and finally copy all files to a tidy dist folder.
Alternatively to skip tests and jshint, use:
grunt buildThanks to DaftMonk's angular-fullstack, there is an extremely simplifed deployment process for heroku.
yo angular-fullstack:deploy heroku generates a dist folder that is deployment ready for heroku.com.
Create and Deploy an app in 6 easy steps
-
mkdir foo && cd foo -
git clone git@github.com:jsbalrog/angular-fullstack-tokens.git -
npm install -
bower install -
yo angular-fullstack:deploy heroku -
cd dist && git push heroku master -
Optional (if using mongoDB)
heroku addons:add mongohq
That's it! Your app should be live and shareable. Type heroku open to view it.