Client-Side MVC
Throughout this chapter we’ve kept a clean delineation between the server-side code (RESTful, JSON APIs) and the client-side code (static HTML, CSS, and JavaScript). The benefit of this separation is that you can completely change your user-facing code without having to modify your Node server. In fact, you could implement a non-browser front end, such as a command-line interface, and your APIs would continue to work just fine.
But at some point you have to create an interface your users can interact with, and that’s what we’ll do here. Please keep in mind that front-end web development is a fast-moving target; the state of the art is advancing every day. To build a front end for the b4 APIs, we’ll use MVC.
The MVC software-design ...
Get Node.js the Right Way 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.