Angular: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
Getting up and running with Angular project on Digital Ocean droplet: | 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 | 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 | ||
| Line 33: | Line 35: | ||
<pre> | <pre> | ||
sudo npm install -g bower | sudo npm install -g bower | ||
</pre> | |||
==Forking Angular== | |||
Fork Angular, if you want, or just get it: https://github.com/angular/angular.js | |||
Then clone it on the droplet: | |||
<pre> | |||
git clone https://github.com/angular/angular.js | |||
</pre> | |||
Now install some stuff: | |||
<pre> | |||
cd angular.js/ | |||
# install node dependencies | |||
npm install | |||
# install bower components: | |||
bower install | |||
# build angular.js | |||
grunt package | |||
</pre> | </pre> | ||
Revision as of 02:19, 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
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