User Authentication and API Authorization Example using Passport JS

This is a simple Sails application to demonstrate how Passport can be used to integrate a local authentication strategy (username-password) and authorize APIs to access the application. While we were working on our project, we couldn't find a tutorial which helps us to implement both (authentication and authorization) and we had to do a lot of manual work. This example will help programmers who are new to Sails JS or Node JS.