Concepts

This section of the documentation focuses on explaining some of the higher-level concepts you encounter when working with Sails at all stages: from development, to deployment, to scaling your app in production.

Table of Contents

  1. Actions and controllers
    1. Generating actions and controllers
    2. Routing to actions
  2. Assets
    1. Default tasks
    2. Disabling Grunt
    3. Task automation
  3. Blueprints
    1. Blueprint actions
    2. Blueprint routes
  4. Configuration
    1. The local.js file
    2. Using `.sailsrc` files
  5. Deployment
    1. FAQ
    2. Hosting
    3. Scaling
  6. E-commerce
  7. Extending Sails
    1. Adapters
      1. Available adapters
      2. Custom adapters
    2. Custom responses
      1. Adding a custom response
    3. Generators
      1. Available generators
      2. Custom generators
    4. Hooks
      1. Available hooks
      2. Events
      3. Hook specification
        1. .configure
        2. .defaults
        3. .initialize()
        4. .registerActions()
        5. .routes
      4. Installable hooks
      5. Project hooks
      6. Using hooks
  8. File uploads
    1. Uploading to GridFS
    2. Uploading to S3
  9. Globals
    1. Disabling globals
  10. Helpers
    1. Example helper
  11. Internationalization
    1. Locales
    2. Translating dynamic content
  12. Logging
    1. Custom log messages
  13. Middleware
    1. Conventional defaults
  14. Models and ORM
    1. Associations
      1. Many-to-many
      2. One way association
      3. One-to-many
      4. One-to-one
      5. Reflexive associations
      6. Through associations
    2. Attributes
    3. Errors
    4. Lifecycle callbacks
    5. Model settings
    6. Models
    7. Query language
    8. Records
    9. Standalone Waterline usage
    10. Validations
  15. Policies
    1. Access Control and Permissions
  16. Programmatic usage
    1. Tips and tricks
  17. Realtime
    1. Multi-server environments
    2. On the client
    3. On the server
  18. Routes
    1. Custom routes
  19. Security
    1. Clickjacking
    2. Content security policy
    3. CORS
    4. CSRF
    5. DDOS
    6. P3P
    7. Socket hijacking
    8. Strict Transport Security
    9. XSS
  20. Services
  21. Sessions
  22. Shell scripts
  23. Testing
  24. Views
    1. Layouts
    2. Locals
    3. Partials
    4. View engines

Using Sails at work?

If your company has the budget, consider purchasing Flagship support. It's a great way to support the ongoing development of the open source tools you use every day. And it gives you an extra lifeline to the Sails core team.

Check out the official Sails VS Code extension

Documentation

Concepts

Sails logo

Concepts

AltStyle によって変換されたページ (->オリジナル) /