This project is designed as a demonstration of my skills in building scalable, maintainable, and efficient applications using Nest.js, a progressive Node.js framework, combined with Sequelize, a powerful ORM for SQL databases. The primary goal of this project is to showcase best practices in software development, including architectural patterns, code organization, and database management.
- Clone this repository: NestJS-CRUD.
- An IDE or text editor like VS Code.
- Node version installed above 20.11.1.
- A package manager such as NPM or Yarn.
- Install MySQL and phpMyAdmin.
- Create an
.env
file based on the.env.sample
and update MongoDB credentials. - API testing tool like Postman.
- Import the
NestJS CRUD.postman_collection.json
file in Postman. - Run
npm install
to install the necessary node packages. - Run the
npm start
commands.
npm start
It will create a build and start listing the server. It will also automatically create all the table in the database.
The following topics covered in this unit:
- User register and Login
- Request method like Get, Post, Put, Delete
- JWT passport authorization and authentication
- DTO validation
- Sequelize with MySQL
- Wiston logger
- User and Bookmark CRUD
- Argon2 for password hashing and compare
- Eslint
- Multi environment config
- PM2 for alive forever
- Prettier for code formatter
- Postman collection
NestJS: | nestjs.com |
NodeJS: | nodejs.org |
Typescript: | typescriptlang.org |
- Website: rajneshwar.com
- LinkedIn: linkedin.com/in/rajneshwar-singh
- Email: rajneshwarthakur@gmail.com
© 2023 Rajneshwar Singh