By Cary Landholt
- This is an attempt to play with the features of AngularJS and leverage the goodness of RequireJS
- Uses controllers, services, directives, filters, and partials
- Uses the RequireJS text plugin for directive partials
- Must have Git installed
- Must have node.js (at least v0.8.1) installed with npm (Node Package Manager)
- Install the following Node.js modules via the terminal. This is a one-time task as the
-g
switch will install the modules globally.npm install -g grunt
Enter the following commands in the terminal.
git clone git://github.com/CaryLandholt/AngularFun.git
cd AngularFun
npm install
grunt
You are now ready to run the app.
However, if you wish to run the app with optimizations (minification, etc.) turned on, enter the following command in the terminal.
grunt prod
- Navigate to the root of the project
grunt server
grunt dev
will watch for any CoffeeScript (.coffee), Less (.less), or .template file changes. When changes are detected, the files will be linted and compiled.
- Finish documentation