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...

Data/model validation is a huge part of any API or application and it's thankfully, very easy to set up in Sails.js. Model Validations To illustrate how model level validations work in Sails.js, let us create a new API project and a User model. sails new validationapp --no-frontend sails generate new model User The first thing one would like to validate for a model attribute is the type of that attribute and sails...