2016-01-06 05:25:47 +00:00
|
|
|
# sails
|
|
|
|
|
|
|
|
> Sails.js is a realtime enterprise level MVC framework built on top of Node.js.
|
2019-05-15 09:22:23 +01:00
|
|
|
> Homepage: <https://sailsjs.com>.
|
2016-01-06 05:25:47 +00:00
|
|
|
|
2016-01-28 07:43:20 +00:00
|
|
|
- Start Sails:
|
2016-01-06 05:25:47 +00:00
|
|
|
|
|
|
|
`sails lift`
|
|
|
|
|
2016-01-28 07:43:20 +00:00
|
|
|
- Create new Sails project:
|
2016-01-06 05:25:47 +00:00
|
|
|
|
|
|
|
`sails new {{projectName}}`
|
|
|
|
|
2016-01-28 07:43:20 +00:00
|
|
|
- Generate Sails API:
|
2016-01-06 05:25:47 +00:00
|
|
|
|
|
|
|
`sails generate {{name}}`
|
|
|
|
|
2016-01-28 07:43:20 +00:00
|
|
|
- Generate Sails Controller:
|
2016-01-06 05:25:47 +00:00
|
|
|
|
|
|
|
`sails generate controller {{name}}`
|
|
|
|
|
2016-01-28 07:43:20 +00:00
|
|
|
- Generate Sails Model:
|
2016-01-06 05:25:47 +00:00
|
|
|
|
|
|
|
`sails generate model {{name}}`
|