node-api-health
v2.1.0
Published
Node Js and Express middleware to monitor and log API access. The logs, among other metrics, are displayed realtime on a [live dashboard](https://apihealth.co/logs).
Downloads
2
Readme
node-api-health
Node Js and Express middleware to monitor and log API access. The logs, among other metrics, are displayed realtime on a live dashboard.
Getting Started
1 Sign up on api-health website https://apihealth.co/logs.
2 Create an app via the dashboard https://apihealth.co/dashboard
2 Copy the credentials provided to your .env
file
Example:
API_HEALTH_API_KEY=https://api.apihealth.co/api/sendlogs?apiKey=sample_key
3 Configure your Node JS API server
Installation
Install the node-api-health
monitoring npm package available through the npm registry
npm install node-api-health --save
Configuring the Node server
const apiHealth = require("node-api-health");
// Express server initialisation
const app = express();
app.use(apiHealth)
Built With
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- Waracci - Initial work - waracci
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Inspiration
- etc