This is the first post in a series to set up an AngularJS UI, backed up by a Sails.js API.

Setting up a Linux environment

Following the example in Sails website will get you up and running. These are the steps:

sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get upgrade	# Optional
sudo apt-get install nodejs

Setting up a Windows environment

  1. First of all, node.js needs to be installed. To do so, download a msi package from the node.js website.

  2. Clone the Angular seed repository, like this: git clone https://github.com/angular/angular-seed.git

  3. Install Sails: npm -g install sails

  4. Since running sails lift at this point failed, I installed the sails-disk component: npm install sails-disk

  5. Lift the server: sails lift