Generate a REST API.
sails generate api user. This will create two files: a model
api/models/User.jsand a controller
Lift your app.
sails liftto start up your app server. If you visit
http://localhost:8011/userin your browser, you'll see a WebSocket-compatible user API.
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
- Supported Databases
- Sails 101
- Google Group
- IRC (#sailsjs on freenode)