Create new Api

It will create a new Product model and ProductController file .

Add Model Attributes

 

Let me run the project now by using sails lift

Product collection has been created successfully in MongoLab.

Source Code

 

Want to learn more about Sails.js ? Please enroll into my course on Udemy: Node:js : Building Rest Apis with Sails.js for only $15 : https://www.udemy.com/building-rest-a…