Before starting to test this API locally you need to assure you have the following prerequisites:
-
Node.JS see: Installing Node.js
-
npm see: Installing npm
-
MongoDB see: Installing MongoDB
- Install all the required packages:
-
Create a
.envfile and add this to it :DATABASE_URL='mongodb://localhost/<YOUR-DB-NAME>' -
Run command
npm run devStart -
Test by sending requests at
localhost:3000 -
Learn more about api testing here.