This Template uses MongoDB database with mongoose ORM via @nestjs/mongoose
- Email Sender with nodemailer
- Email Verification
- Role based authorization
- Secure user and admin routes
- Jwt authentication with refresh token
- Logging Middleware
After running npm install, create a .env file in the root folder with the following environment variables:
- dbUrl: Mongo db database url
- jwtSecret: secret key for jwt
- refreshTokenSecret: secret key for refresh token
- apiEmail: email address for email sender configuration
- apiEmailPassword: email password
Swagger documentation can be found at {{baseUrl}}/swagger-ui