Heroku + Express. Test application from heroku server. (Designed for mobile devices!!)
- AngularJS: angularjs.org
- Ionic: ionicframework.com
- Grunt: gruntjs.com
- Yeoman: yeoman.io
- Bower: bower.io
- NodeJS: nodejs.org
- Express: expressjs.com
Install generator-angular-fullstack
:
npm install -g generator-angular-fullstack
Make a new directory, and cd
into it:
mkdir my-new-project && cd $_
Run yo angular-fullstack
, optionally passing an app name:
yo angular-fullstack [app-name]
To generate a dist folder that can easily be deployed use:
grunt
This 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 build
We provide 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 4 steps
mkdir foo && cd foo
yo angular-fullstack
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.