-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Working Environment
For setting up your working environment the following tools, libs and frameworks are required:
- Node.js v0.10.x
- Npm (which comes bundled with Node) v2.1.0+
- Git
- Yeoman
- Angular generator
- Git-up
If you need to upgrade or install Node, the easiest way is to use an installer for your platform. Download the appropriate installer for your current operative system from NodeJS website.
If using linux run:
sudo apt-get install nodejs sudo apt-get install npm
npm install --global npm@latest
$ apt-get install git
npm install --global yo bower grunt-cli
Install generator-angular using this command:
npm install --global generator-angular
https://github.com/aanand/git-up
You need to install ruby and ruby gems
sudo apt-get install ruby sudo apt-get install ruby-dev sudo apt-get install rubygems-integration sudo gem install git-up
Create a myApp folder for all your codelab work: mkdir myApp && cd myApp
git clone
npm install bower install
Run a Grunt task to create a local, Node-based http server on localhost:9000 (or 127.0.0.1:9000 for some configurations) by typing:
grunt serve
If you ever need to stop the server, use the Ctrl+C keyboard command to quit your current CLI process.
Let’s go back to the command line and kill our Grunt server using Ctrl+C. There is already a Grunt task scaffolded out in our Gruntfile.js for running tests. It can be run as follows:
grunt test