Chapter 4. REST is Best – Interacting with the Server Side of Your App

The majority of development work involved in creating a JavaScript single page application is generally going to be on the frontend, but not to be overlooked is the all-important data-transfer layer of your application, which communicates with the server and the database. Representational State Transfer (REST) is the standard architectural style of data transfer between client and server for the World Wide Web and the Internet of Things (IoT). Any time you use a web application, chances are that REST is being used to communicate data and transitions of state from the UI.

The beauty of using the REST architectural style for a SPA is that the frontend of your application can be ...

Get Mastering JavaScript Single Page Application Development 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.