Node.js with MongoDB Example
Requirements
- Node.js v10+
- MongoDB running on local instance
Environment Variables
- PORT: 3000
- MONGO_URL: localhost:27017
Running
- Install dependencies -
npm i
- Build typescript -
npm run build
- Run project -
npm start
- Go to swagger page -
localhost:3000/
Development with Watch Compiler
- Run project -
npm run dev