Chapter 5. Managing Users

In Chapter 4, Developing the Model-View-Controller Layers, we used the Model-View-Controller pattern and wrote the base of our social network. We split our application into backend and frontend directories. The code in the first folder serves the assets and generates the home page. Along with this, we made the base of our backend API. The client side of the project is driven by the Ractive.js framework. This is the place where we store our controllers, models, and views. With these elements, we will continue with the management of users. In this part of the book, we will cover the following topics:

  • Working with the MongoDB database
  • Registering a new user
  • User authentication with sessions
  • Managing a user's profile

Working with ...

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.