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