-
Generate a REST API.
Run
sails generate api user. This will create two files: a modelapi/models/User.jsand a controllerapi/controllers/UserController.js. -
Lift your app.
Run
sails liftto start up your app server. If you visithttp://localhost:3002/userin your browser, you'll see a WebSocket-compatible user API.
- App Structure
- Reference
- Supported Databases
- Sails 101
- StackOverFlow
- GitHub
- Google Group
- IRC (#sailsjs on freenode)