Sing App AngularJS v4.4.0
QUICK START
Since 2.0.0 update Angular version has been fully automated; you only need to run a bunch of commands to have application set up and running. Here is the list:
Make sure you have node installed;
Then open a terminal (console) and navigate to your project folder
cd path/to/project
;Install required libraries: gulp (for automation) and bower (for front end package management):
npm install -g bower gulp
;Run
npm install
to install node dependencies defined in package.json;Run
bower install
to install bower dependencies defined in >bower.json;Run
gulp serve
to run a tiny web server that will serve files from the project directory (sass, js and html files will be being watched for changes by gulp so you don't need to trigger any command when you change your code - browser refresh will occur automatically);Open http://localhost:3000/ in your browser to access the app.
That's it! Enjoy.
For a deeper dive, there are also other gulp tasks which automate common routines:
gulp build
- builds a production version of the application. All html/css/js code is minified and put todist
folder. The contents of this folder you will want to put to your production server when publising the application;gulp clean
- cleansdist
and.tmp
folders. Run when it becomes too messy;gulp serve:dist
- same asgulp serve
, but serves files fromdist
folder. Useful when testing production code.
Same instructions are applied for angular-seed version.