/nodejs-with-mongodb-api-example

Node.js Web API example using Hapijs and MongoDB

Primary LanguageTypeScript

Node.js with MongoDB Example

Swagger Page of that application

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 once - npm run dev
  • Run and watch files - npm run dev:watch