Back-End Infrastructure Implementation

This lesson explains the back-end infrastructure implementation, the model's folder, the working of mongoose, and the user.js file.

We'll cover the following

In the previous lesson, we discussed the frontend infrastructure. Now, let’s look at the back-end.

model Folder

In this project, you will find the directory mean_backend. If you look into it, you’ll see that there is a user model defined on the back-end as well (/model/user.js file).

Here, is where the library Mongoose comes into play. This library is used to simplify validations, castings, and business logic that revolves around database access to MongoDB. There is a folder model on the back-end implementation too, but this one is a bit more complicated since it contains a database access layer as well.

This is what it looks like:

Get hands-on with 1200+ tech skills courses.