| Start |
|---|
| Run application locally Following example requires that [node.js](https://nodejs.org) is installed and [npm](https://www.npmjs.com) is available. Usually one of the first things you want to do when developing new web application is to make it run locally. Below you'll find complete example achieving just that, using grunt (opens new window) (javascript task runner), npm (opens new window) (node package manager) and bower (opens new window) (yet another package manager). Beside your actual application files you'll need to install few 3rd party dependencies using tools mentioned above. In your project directory, preferably root, you'll need three (3) files.
So your project directory looks like so: package.json We'll be installing grunt itself, matchdep to make our life easier allowing us to filter dependencies by name, grunt-express used to start express web server via grunt and grunt-open to open urls/files from a grunt task. So these packages are all about "infrastructure" and helpers we'll be building our application on. bower.json Bower is (or at least should be) all about front-end and we'll be using it to install angular. gruntfile.js Inside gruntfile.js we'll have the actual "running application locally" magic, which opens our application in new browser window, running on http://localhost:9000/ (opens new window) Usage To get your application up & running from scratch, save above files to your project's root directory (any empty folder will do). Then fire up console/command line and type in the following to install all required dependencies. And then run your application using Note that yes, you'll be needing your actual application files, too. There structure ain't that different. There's just |
Read Article
https://develop.horje.com/learn/1434/reference