Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Getting Started

Eugene Obrezkov edited this page Sep 14, 2015 · 7 revisions

Installing modules

First of all, you need install yeoman and generator-sails-rest-api:

npm install -g yo generator-sails-rest-api

Initiate the generator

Then create project directory and initiate the generator under the project directory:

mkdir my-project
cd my-project
yo sails-rest-api

Answer questions

You will be prompted for questions. Answer to those questions that generator is asks and you will get configured Sails project.

Running the server

After scaffolding the project you can use this project as before. Just run the app.js file and all.

node app.js

Congratulations

Congratulations, you just have setup your first Sails REST API 👍

Clone this wiki locally