This is my first project where I am designing the Schema and using MVC-Architecture. Mongoose is used here to develope the project efficiently and giving it an industry level feel.
I used Service Layer Architecture with MVC. The concepts used in this projects are Fat Model/Thin Controller and Separation of Concern. By using these concepts the code is structured in an organized way.
- controllers: All the controllers.
- models: Schema design and the Product model.
- routes: All the routes.
- services: All the business logic/database call.
- node
- express
- cors
- dotenv
- mongoose
- colors
- bcrypt
- jsonwebtoken
- Design Schema.
- Then create a Model from the Designed Schema.
- Then do Query operations on the model.