O'Reilly logo

Sails.js in Action by Mike McNeil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required