Sails JS is a MVC framework for node JS built on top of Node and express JS. It provides allows you to quickly get started with the REST API’s.
Lets get step up a sails js project quickly to get you familiar with the framework.
Open up your favourite Terminal/command Prompt. I am using visual studio on ubuntu 20.04
Go to your preferred location, here I will choose Desktop/medium
cd Desktopmkdir mediumcd medium
v14.16.0(yours may be different) any version above 10+ is fine
7.7.5(again yours may be different)
Lets now install Sails JS globally
npm install sails -g
Check sails version
I have sails version — 1.4.2
We have now successfully installed sails on the system, lets start with the real work.
Generate an empty sails project
sails new test-project
Lift the project
Note: You can alternatively use nodemon to run the app if you have nodemon globally installed
nodemon run start
Lets open Localhost and see if everything is working fine, by default sails server is runs on PORT 1337
Open your browser and type
If you see this page voila ! You have successfully started a sails js app.