-
Generate a REST API.
Run
sails generate api user
. This will create two files: a modelapi/models/User.js
and a controllerapi/controllers/UserController.js
. -
Lift your app.
Run
sails lift
to start up your app server. If you visithttp://localhost:6003/user
in your browser, you'll see a WebSocket-compatible user API. -
Dive in.
Blueprints are just the beginning. You'll probably also want to learn how to customize your app's routes, set up security policies, configure your data sources, and build custom controller actions. For more help getting started, check out the links on this page.
- App Structure
- Reference
- Supported Databases
- Sails 101
- StackOverFlow
- GitHub
- Google Group
- IRC (#sailsjs on freenode)