Downtime-Monitoring
A nodejs project to monitor a website to catch downtime.
How to run
-
Clone the project
-
Create a DB in mongo DB:
- Includes a table with
Downlog
naming and two fieldstimestamp
andurl
. (same as models/down-log.js) - Set database url into
db.js
file
- Includes a table with
-
Run project as below command:
EMAIL_USER_NAME=YOUR_EMAIL_ADDRESS EMAIL_HOST_NAME=localhost:27017 nodemon index.js
-
Then in postman you can try a POST http request with
localhost:3000/
url and body as{ url: "YOUR_DESIRE_WEBSITE_TO_MONITOR" }