From charlesreid1

No edit summary
Line 69: Line 69:
* angular-scenario.js - end to end test runner
* angular-scenario.js - end to end test runner
* docs/ - files needed to run docs.angularjs.org
* docs/ - files needed to run docs.angularjs.org
==Test it out==
You can run a webserver with bower, but I prefer python:
<pre>
# run from angular.js/
python -m SimpleHTTPServer 8000
</pre>
Now check out <code>http://localhost:8000/build/docs</code>

Revision as of 02:23, 30 March 2015

Installing

Getting up and running with Angular project on Digital Ocean droplet:

Setting Up Angular

Following these instructions for getting environment set up: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

First, update repo to get a more up-to-date version of nodejs:

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs npm

Next, install Java 7 or latest:

sudo apt-get install java7-jdk java7-sdk

Following these instructions for putting everything else into place for Angular: https://docs.angularjs.org/misc/contribute

Install grunt:

sudo npm install -g grunt-cli

Install bower:

sudo npm install -g bower

Building Angular

Fork Angular, if you want, or just get it: https://github.com/angular/angular.js

Then clone it on the droplet:

git clone https://github.com/angular/angular.js

Now install some stuff:

cd angular.js/

# install node dependencies
npm install

# install bower components:
bower install

# build angular.js
grunt package

This will drop a bunch of stuff into the build/ directory.

  • angular-version.zip - zip file containing all release build artifacts
  • angular.js - non-minified angular script
  • angular.min.js - minified angular script
  • angular-scenario.js - end to end test runner
  • docs/ - files needed to run docs.angularjs.org

Test it out

You can run a webserver with bower, but I prefer python:

# run from angular.js/
python -m SimpleHTTPServer 8000

Now check out http://localhost:8000/build/docs