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

https://github.com/ooloth/check-website-status

Confirm a list of websites are online.
https://github.com/ooloth/check-website-status

Last synced: 6 months ago
JSON representation

Confirm a list of websites are online.

Awesome Lists containing this project

README

          

# Check Website Status

A simple script that attempts to fetch one or more URLs and sends an email alert if one or more of them are down.

## Usage

1. Clone this repo
2. Navigate to this repo's folder
3. Create an `.env.local` file at the root level and add values to the following variables:

```sh
SENDGRID_API_KEY=""

URLS_SEPARATED_BY_A_SPACE=""
```

4. Run `npm install`
5. Run `npm run check`
6. If you want these checks to run automatically on a schedule:
a. Edit the paths in `check.sh` to match your local folder structure
b. Run `chmod +x check.sh` to make `check.sh` executable
c. Use a cron job (or an app like [Lingon](https://www.peterborgapps.com/lingon/)) to schedule `check.sh` to run every day, week, etc.