express-req-tracker
A Express middleware for tracking request and responses.
Installation
yarn add express-req-tracker# or npm install -S express-req-tracker
Usage
;; const app = ; // use req-trackerapp; app; const PORT = processenvPORT;app;
Run Example
Notice
: before run example, please ensure you have installed and running MongoDB.
# first: run unit test to produce request logs npm run test # second: run sample npm run start
after running example, then you can open the dashboard http://localhost:7001/req-tracker/dashboard to view the request logs.
License
MIT