Wrapping Up
This chapter showed both sides of web application development, from the Node.js server out to the browser. It took us further into web services as we developed stateful, session-based user APIs. And we used Redis, a fast key/value datastore for housing our session data in a scalable way.
By bringing in passport—an Express plug-in—we provided seamless support for logging in with Google credentials. And we developed custom Express middleware to authorize requests to our RESTful user APIs.
To power the client side, we served static content, both for our single-page application itself and its dependencies, which we got from Bower, an un-opinionated front-end package manager. We used jQuery’s Ajax capabilities to synchronize our model ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access