Since the beginning of hellosails.com, there have been articles on the following topics: The basic structure of a Sails.js application Blueprints Policies Validations and Validation Messages Services The above should provide enough knowledge to understand how to build something (relatively small) with a real use case. So today, we're gonna build simple authentication for our Sails API from scratch. There are other tools one can use to (greatly) ease the process of implementing...

Services in Sails.js are pretty easy to understand. They're simply JavaScript objects with functions that can be used everywhere (controllers, policies ... etc). Services live in the /api/services folder. To illustrate this, we'll look at a ResponseService I found lurking in my friend's code. What this service's function does is to sort of format your API's request responses into this neat structure below: { "response": { "message": "User created successfully"...