- Processing requests and sending responses to the client side
- Posting content
- Interaction with MongoDB database
- Working with Access / Refresh JWT tokens
- Generating and sending letters to the user’s email
- Typescript
- Nest-js
- JWT
- Passport-JWT
- MongoDb
- Typegoose
- UUID
- Bcryptjs
- Class-validator
- Generate-password
- Rxjs
- Reflect-metadata
- Fs-extra
- PORT = 4200
DEVELOPMENT mode or PRODUCTION mode (select one mode):
- NODE_ENV = production
- NODE_ENV = development
Host address in DEVELOPMENT mode or PRODUCTION mode:
- DEV_HOST = 'http://localhost:3100'
- PRODUCTION_HOST = 'http://localhost:3100 (or https://YOUR-DOMAIN.COM')
Path to database MongoDB:
- MONGO_URI = mongodb+srv://YOUR-DATABASE-PATH
- JWT_SECRET = 213^dsakjoi102 (any combination of letters and symbols)
Nodemailer:
- SMTP_HOST = 'YOUR SETTINGS'
- SMTP_PORT = 'YOUR SETTINGS'
- SMTP_USER = 'YOUR SETTINGS'
- SMTP_PASSWORD = 'YOUR SETTINGS'
- yarn build
- npm run build
- pnpm build
- yarn dev
- npm run dev
- pnpm dev