An open API service indexing awesome lists of open source software.

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.

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

```