This is a simple project that demonstrates how to use checkly and Node.js to build a real-time monitoring system for cyclone alerts issued by the US National Weather Service. The monitoring system periodically checks for new alerts in a specific area (e.g., a state) and sends an email notification when a new alert is issued. This project can serve as a starting point for building similar monitoring systems for other types of alerts, such as earthquakes, fires, or pandemics.
To run this project, you need to have the following software installed:
- Node.js v14 or later
- Playwright
- SendGrid API Key
- Clone this repository using the following command:
git clone https://github.com/jacksonkasi1/cyclone-alert-monitoring.git
- Navigate to the project directory:
cd cyclone-alert-monitoring
- Install the required dependencies:
npm install
-
Rename
.env.example
file to.env
and fill in your SendGrid API key and email address. -
Replace
STATE_CODE
variable inindex.ts
with your desired US state code.
Start the monitoring system:
npm run start
This project is licensed under the MIT License. Feel free to use and modify it for your own purposes.
Building a Cyclone Alert Monitoring System using Checkly, Playwright and Node.js