- MVC Architecture
- Understanding the Model-View-Controller (MVC) architecture used by Sails.js.
- How Sails.js leverages MVC to structure your application.
- Creating and Managing Models
- Defining models in Sails.js and mapping them to database tables or collections.
- Using Waterline ORM (Object-Relational Mapping) for database interactions.
- Implementing custom methods and hooks for models.
- Building Controllers
- Creating controllers to handle business logic and request processing.
- Defining actions and routes within controllers.
- Handling different HTTP methods (GET, POST, PUT, DELETE) in controller actions.
- Defining Routes
- Configuring routes in Sails.js using
config/routes.js
.
- Understanding route patterns and how they map to controller actions.
- Implementing route parameters and query strings.
Leave a Reply