So far, we have gained real knowledge of the Mongoose models and MongoDB. Now it is time to see them in action in our application, and to get familiarized with the server directories.
We have already covered in detail the main folders (
e2e) of the
client directory in the previous chapter. In this chapter, we are going to focus solely on the
server directory. Here is an overview what it looks like:
meanshop/server ├── api - Server API components ├── auth - Authentication handlers ├── components - App-wide/reusable components ├── config - App configuration │ └── local.env.js - Environment variables │ └── environment - Node environment configuration ├── views - Server rendered ...