https://github.com/suhailroushan13/pinger
This Node.js application periodically pings a list of websites and sends an SMS notification using Twilio if any of the websites are down or respond with an error. It utilizes Express for the web server and Axios for making HTTP requests.
https://github.com/suhailroushan13/pinger
alert nodejs notifications ping sms twilio website
Last synced: 4 months ago
JSON representation
This Node.js application periodically pings a list of websites and sends an SMS notification using Twilio if any of the websites are down or respond with an error. It utilizes Express for the web server and Axios for making HTTP requests.
- Host: GitHub
- URL: https://github.com/suhailroushan13/pinger
- Owner: suhailroushan13
- Created: 2023-08-05T16:32:33.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T06:25:47.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T00:51:01.210Z (6 months ago)
- Topics: alert, nodejs, notifications, ping, sms, twilio, website
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pinger Project Setup
This repository contains the code for the Pinger project. The project is designed to use Twilio to send messages to a specified phone number.
## Prerequisites
Before running the application, make sure you have the following:
1. Node.js installed on your system.
2. Git installed on your system.
3. Twilio account credentials (Account SID, Auth Token).
4. Twilio phone number (purchased from Twilio).
5. Your own phone number where you want to receive the messages.## Setup Instructions
Follow the steps below to set up the project:
1. Clone the repository, change to the project directory, and create a configuration file:
```bash
git clone [email protected]:suhailroushan13/pinger.git
cd pinger
mkdir config && cd config
touch default.json
```
2. Edit default.json and fill the details
```json
{
"accountSid": "ACadf3dXXXXXXXXXXXXX",
"authToken": "b9f578eXXXXXXXXXXXXXX",
"twilioPhoneNumber": "+12XXXXXXXXXX",
"myPhoneNumber": "+919XXXXXXXXX"
}
```
3. Get back to Repository directory
```bash
cd ..```
4.Install All NPM Modules and Run The Project
```bash
npm install
npm start```