List of Figures

 

Chapter 1. Getting started

Figure 1.1. The contents of a response from an initial request by your browser to https://brushfire.io

Figure 1.2. The frontend makes a request and the backend makes a response.

Figure 1.3. Clicking the Sign Up button generates a request to the Sails backend, which responds with the signup page.

Figure 1.4. The components necessary for the backend to satisfy the request and deliver the signup page to the frontend

Figure 1.5. The components necessary for the backend to satisfy the request by creating a user and responding with the result

Figure 1.6. Understanding how the Sails router matches the incoming request with routes to trigger an action

Figure 1.7. The router matched the request as part of an explicit route.

Figure 1.8. A route operates like a click event handler . The route address serves a similar purpose to the combination of the DOM selector and DOM event. And the route target is similar to an event handler function .

Figure 1.9. An example of the URL query string that starts with a question mark, contains a key/value pair separated by an equals sign, and is separated by an ampersand

Figure 1.10. The components of a model include attributes, methods, and settings.

Figure 1.11. An endpoint from a backend API in action, processing a request from a signup form

Figure 1.12. The frontend-first approach to backend development