Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
/ Uptimely Public archive

πŸ”Ž A simple website for monitoring website uptime and SSL certificate status using Node.js and Vercel

License

Notifications You must be signed in to change notification settings

sioaeko/Uptimely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Uptime Monitor

⚠️ ARCHIVED

Project Logo

This project has been replaced by StatusWatch and is no longer maintained.

Visit our new project for enhanced features including:

  • 🎨 Modern, responsive UI with dark mode support
  • πŸ“Š Advanced analytics and reporting
  • πŸ“± Mobile app integration
  • πŸ”” Enhanced notification system
  • πŸš€ Improved performance monitoring

πŸ‘‰ Upgrade to StatusWatch at:
github.com/sioaeko/StatusWatch

rounded-in-photoretrica

Uptime Monitor is a simple tool to monitor the availability and SSL certificate status of specified URLs. This project provides a web interface to add URLs for monitoring and an API to check their status. This version is optimized for serverless deployment on Vercel.

Deploy with Vercel

Service on 🌐 https://uptimely.vercel.app

Features

  • 🌐 URL Availability Monitoring
  • πŸ”’ SSL Certificate Status Checking
  • ⏱️ Response Time Measurement

Setup and Installation

Prerequisites

  • Node.js (v12.x or later)
  • npm (v6.x or later)
  • Vercel account

Installation

  1. Clone the repository:

    git clone https://github.com/sioaeko/Uptime-monitor.git
    cd Uptime-Checker
  2. Install dependencies:

    npm install

Running the Project Locally

  1. Start the server:

    npm run dev
  2. Open your browser and navigate to http://localhost:3000.

Deploying to Vercel

  1. Sign up or log in to Vercel.
  2. Import your project from GitHub to Vercel.
  3. In the Vercel dashboard, set up your project settings and deploy.

Environment Variables

For deployment on Vercel, you may need to set the following environment variables in the Vercel dashboard under your project settings:

  • NODE_ENV: production

API Endpoints

POST /api/add-url

Add a URL for monitoring.

Request

{
  "url": "https://example.com"
}

Response

{
  "status": "success",
  "message": "URL added for monitoring"
}

GET /api/check-status

Check the status of a monitored URL.

Request

{
  "url": "https://example.com"
}

Response

{
  "status": "up",
  "responseTime": 123,
  "ssl": {
    "valid": true,
    "expiresAt": "2024-12-31T23:59:59.000Z"
  },
  "lastChecked": "2024-06-25T12:34:56.000Z",
  "downHistory": []
}

POST /api/remove-url

Remove a URL from monitoring.

Request

{
  "url": "https://example.com"
}

Response

{
  "status": "success",
  "message": "URL removed from monitoring"
}

Project Structure

Uptime-monitor/
β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ add-url.js
β”‚   β”œβ”€β”€ check-status.js
β”‚   └── remove-url.js
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ script.js
β”‚   └── styles.css
β”œβ”€β”€ server.js
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
└── README.md

Contributing

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License.

About

πŸ”Ž A simple website for monitoring website uptime and SSL certificate status using Node.js and Vercel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published