NestJS Mysql UserManagement: Secure & Efficient Starter
Kickstart your NestJS project with robust user management, built-in email OTP authentication and fully user management, and adherence to best practices. This comprehensive starter template provides a solid foundation to simplify development and ensure security.
Before running this project, ensure you have the following requirements:
- Node.js 18.x.x or later
- Nest.js 9.x.x
- MySql
- Redis
- pnpm (pkg manager)
You can install dependencies using Yarn, which is preferred for better performance and reliability:
pnpm install
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
Ensure you have a .env
file in the root directory of the project with the following variables:
DB_TYPE=''
DB_HOST=''
DB_PORT=''
DB_USERNAME=''
DB_PASSWORD=''
DB_DATABASE=''
DB_CHARSET=''
SMTP_EMAIL=''
SMTP_PASS=''
JWT_SECRET=''
REDIS_URL=''
SALT_ROUND=''
- Author - Zeshan Shakil
Nestjs MySql Usermanagement is MIT licensed.