Skip to content

Instantly share code, notes, and snippets.

@yassermzh
Last active August 29, 2015 14:04
Show Gist options
  • Save yassermzh/5e5bcbfe5d527513ee8d to your computer and use it in GitHub Desktop.
Save yassermzh/5e5bcbfe5d527513ee8d to your computer and use it in GitHub Desktop.
Simple setup to start playing with AngularJS. Used the instructions from https://github.com/startup-class/setup/blob/master/setup.sh
#!/bin/bash
# Install nvm: node-version manager
# https://github.com/creationix/nvm
sudo apt-get install -y git
wget https://raw.github.com/creationix/nvm/master/install.sh
sh install.sh
# TEST: now this should work
nvm
# Load nvm and install latest production node
source $HOME/.nvm/nvm.sh
nvm install v0.10.29
nvm use v0.10.29
# TEST: now this should work
node --version
# Install jshint to allow checking of JS code
# http://jshint.com/
npm install -g jshint
# Install rlwrap to provide libreadline features with node
# See: http://nodejs.org/api/repl.html#repl_repl
sudo apt-get install -y rlwrap
# install grunt, bower, yo
npm install -g grunt-cli
npm install -g bower
npm install -g yo
# install angular generator
npm install -g generator-angular
# now try this to scaffold new angular app
mkdir my-new-project
cd my-new-project
yo angular myapp
# to serve it, which should open browser
grunt serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment