This template is written in TypeScipt
Included Packages:
- CORS: CORS middleware
- cross-env: Cross compatible npm scripts
- dotenv: Processing .env files
- ExpressJS: Server framework
- jsonwebtoken: JWT signing/verifying
- MIKRO-ORM: Mongo ORM
- MongoDB: Database driver
- Morgan: Logging middleware
- PassportJS: Auth layer
Required environment variables:
- JWT_SECRET
Optional environment variables:
- PORT
- MONGODB_NAME
- JWT_EXPIRY
- MONGODB_URI
- NODE_ENV = [development, test, production]
- CLIENT_ORIGIN - Only needed if setting up CORS