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.
- Host: GitHub
- URL: https://github.com/ooloth/check-website-status
- Owner: ooloth
- License: other
- Created: 2020-04-14T00:05:33.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T17:49:21.000Z (almost 4 years ago)
- Last Synced: 2025-03-12T01:34:45.513Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.