Chapter 4. Developing the Model-View-Controller Layers

In the previous chapter, we learned how to prepare the assets needed by our application. It is time to move forward and start writing the base levels of our social network. In this chapter, we will use the Model-View-Controller pattern and prepare our code base to implement the future of our application. Here is what we will talk about in this chapter:

  • Transforming the code from the previous chapter to a better file structure
  • Implementing a router that works in both backend and frontend environments
  • Briefly introducing Ractive.js—a framework that we will use in the client-side part of the project
  • Developing the main file of the application
  • Implementing controller, view, and model classes

Evolving ...

Get Node.js By Example 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.