This project is designed as a demonstration of my skills in building scalable, maintainable, and efficient applications using Node.js and combined with MongoDB databases.
- Clone this repository:
- An IDE or text editor like VS Code
- Node version installed above 20.12.1
- A package manager such as NPM or Yarn
- Install MongoDB
- Modify the .env file according to your MongoDB credentials.
- API testing tool like Postman
- Import the
NodeJS CRUD.postman_collection.json
file in Postman. - Run the
npm install
commands for installing the node packages.
npm start
It will create a build and start listing the server.
The following topics covered in this unit:
- User and Product CRUD with MongoDB
- Monolithic architecture
- User SignUp and Login
- Request method like Get, Post, Put, Patch, Delete
- JWT authorization and authentication
- Joi validation
- Winston error and info loggers
- Bcrypt for password hashing and compare
- Helmet
- Eslint
- Bable-node
- Multi environment config
- PM2 for alive forever
- Prettier for code formatter
- Postman collection
Node.js: | Nodejs.org |
MongoDB: | mongodb.com |
© 2024 Rajneshwar Singh