Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Rapid Api Development with Node and Sails

353 views

Published on

Creating a RESTful API should be the easiest part of your development. You should not have to be a rocket scientist to successfully create a RESTful API. With Sails, you can create a full featured RESTful API in just a few minutes without writing any code. You get create, destroy, update, find, paginate, sort, and filtering out of the box. If you need to add your business logic to any of the methods or create your own methods, you can do that by writing simple JavaScript functions.

When you are ready to implement your security layer, Sails has you covered. Sails provides basic security and role-based access in the form of policies that can be applied any REST action. Policies are interchangeable with Express/Connect middleware which means you can plugin in popular NPM modules such as Passport. You can also easily implement your own email/password, social login or Windows authentication with a bit of JavaScript.

For data storage, Sails bundles the power ORM, Waterline, which provides a simple data access layer that just works, no matter what database you are using. Out of the box MongoDB, MySQL, PostgreSQL, and Redis are support. However, there are more than 30 data storage providers adapter that the community has created such as Microsoft SQL Server, Couchbase, Salesforce, and Firebase. You can easily switch between any data storage provider or mix and match data storage providers on a model by model basis.

This talk will be code heavy as we walk through getting started with Sails and demonstrate how to implement the features of Sails through the creation of an API. As well, I will share the tips and tricks that I have learned using Sails at a Fortune 100 company. You will walk away understanding how and why you should use Sails on your next project.

Github Repo: https://github.com/digitaldrummerj/sailstalk

Published in: Software
  • Be the first to comment

Rapid Api Development with Node and Sails

  1. 1. http://digitaldrummerj.me Justin James Developer / Blogger / Instructor / Speaker
  2. 2. http://digitaldrummerj.me 2 Create JavaScript Services
  3. 3. http://digitaldrummerj.me 3 Auto-generated REST APIs
  4. 4. http://digitaldrummerj.me 4 Any Database
  5. 5. http://digitaldrummerj.me 5 Flexible and Configurable
  6. 6. http://digitaldrummerj.me 6 Security Policies
  7. 7. http://digitaldrummerj.me 7 Built-On Top of
  8. 8. http://digitaldrummerj.me 8 Why I Love Sails
  9. 9. http://digitaldrummerj.me 9 Ridiculously Fast
  10. 10. http://digitaldrummerj.me 10 Just Works
  11. 11. http://digitaldrummerj.me 11 Does NOT hide the magic
  12. 12. http://digitaldrummerj.me 12
  13. 13. http://digitaldrummerj.me Ultimately, writing tiny amounts of code gets you a ton! 13
  14. 14. http://digitaldrummerj.me 14 Setup
  15. 15. http://digitaldrummerj.me 15 Setup npm install –g sails
  16. 16. http://digitaldrummerj.me 16 Create Project sails new [Project Name] --no-linker --no-frontend
  17. 17. http://digitaldrummerj.me 17 Generate API sails generate api [Api Name]
  18. 18. http://digitaldrummerj.me 18 Start Sails Server sails lift
  19. 19. http://digitaldrummerj.me 19 Debug API node --inspect app.js
  20. 20. http://digitaldrummerj.me CODING TIME Design an API from scratch Add Security Connect to a Database Connect to a UI 20
  21. 21. http://digitaldrummerj.me Twitter: @digitaldrummerj Code: github.com/digitaldrummerj/SailsTalk Slides: slideshare.net/digitaldrummerj

×