From charlesreid1

Revision as of 02:19, 30 March 2015 by Admin (talk | contribs)

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

Forking 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