Pages

Thursday, 1 August 2019

Sails js Basic Commands

sails cmnds
-------------


#sails new test-project
#sails lift
#sails generate api cats // generates api/controllers/CatsController.js along with a matching model
#sails generate controller user//to quickly create a controller file. api/controllers/UserController.js
#sails generate action user/signup //generate action2 file
#sails generate action user/signup --no-actions2 //generate classic actions 
#sails generate helper tickle-user //generate helper files. api/helpers/tickle-user.js

No comments:

Post a Comment