From charlesreid1

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