Setting up a Sails.js + AngularJS project part 1
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
-
First of all, node.js needs to be installed. To do so, download a msi package from the node.js website.
-
Clone the Angular seed repository, like this:
git clone https://github.com/angular/angular-seed.git
-
Install Sails:
npm -g install sails
-
Since running
sails lift
at this point failed, I installed the sails-disk component:npm install sails-disk
-
Lift the server:
sails lift