Last active
August 29, 2015 14:24
-
-
Save ashishtajane/97014ef54e3b6658f5b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Git, RVM and NodeJS/NPM | |
sudo apt-get install git-core build-essential make curl | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm requirements | |
rvm install ruby | |
rvm use ruby --default | |
rvm rubygems current | |
echo "gem: --no-document" > ~/.gemrc | |
rvm use default | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
sudo apt-get install nodejs | |
echo 'export NODE_PATH="$NODE_PATH:/usr/local/lib/node_modules"' >> ~/.bashrc | |
#################### | |
sudo chown -R $USER:$GROUP ~/.npm | |
sudo npm install -g yo grunt-cli gulp bower generator-webapp generator-angular | |
npm cache clean | |
bower cache clean | |
cd ~/Projects | |
mkdir <project_name> | |
cd <project_name> | |
yo doctor | |
# fix any issues told by `yo doctor` | |
yo angular | |
# Done | |
# Now you can use commands like | |
yo angular:controller myController | |
yo angular:directive myDirective | |
bower install angular-ui-router --save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment