-
Install Git if you haven't yet.
-
Install Node v4 or above.
-
Install NPM v3 using
sudo npm install -g npm
after installing Node. -
Install Sails framework.
-
Install the dependencies using
npm install
-
Test the installation by
sails lift
The API is available at localhost:1337/high-seas. Sails actually generates a new Model "High-seas" (file located in api/models/High-seas.js
) and a Controller "High-seasController" ( file located in api/controllers/High-seasController.js
).
Simply add routes in controller and some schema in model, and you'll have the bare API running.