MERN stack E-commerce project
- Enviroment setup
- Express server setup
- API testing with Postman
- Middleware & Types of Middleware
- Express Error Handling Middleware → body-parser
- How to handle HTTP errors → http-errors
- How to secure API →→xss-clean, express-rate-limit
- Environment variable & .gitignore
- MVC Architecture
- connect to MongoDB databse 18 14. Schema & Model for User
- create seed route for testing
- GET /api/users →isAdmin →getAllUsers → searchByNAME + pagination functionality
- responseHandler controller for error or success
- GET /api/users/ : id → get a single user by id
- How to create services in the backend
- DELETE /api/users/ : id → delete a single user by id
- Refactoring & reusability, dynamic 22. deleteImage helper
- POST /api/users create an user
- add express validator middleware
- add multer middleware for file upload
- PUT /api/users/ : id → update a single user by id
#express #nodemon #morgan