Chapter 4. Using the blueprint API

This chapter covers

  • Expanding your understanding of the relationships among requests, routes, and actions in a Sails API
  • Generating a backend API with blueprint routes and blueprint actions
  • Integrating frontend requests with the blueprint API
  • Using blueprint shortcut routes to access data from the browser
  • Upgrading with WebSockets to provide realtime features

Chad loved Brushfire’s ability to display and add YouTube videos. He soon discovered, however, the limitations of the simulated backend. When he refreshed his browser, all of the videos he added were no longer listed! We explained that this was because the links to the YouTube videos he added were stored temporarily in an array in memory. When ...

Get Sails.js in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.