|
This project has been replaced by StatusWatch and is no longer maintained. Visit our new project for enhanced features including:
π Upgrade to StatusWatch at: |
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.
Service on π https://uptimely.vercel.app
- π URL Availability Monitoring
- π SSL Certificate Status Checking
- β±οΈ Response Time Measurement
- Node.js (v12.x or later)
- npm (v6.x or later)
- Vercel account
-
Clone the repository:
git clone https://github.com/sioaeko/Uptime-monitor.git cd Uptime-Checker -
Install dependencies:
npm install
-
Start the server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000.
- Sign up or log in to Vercel.
- Import your project from GitHub to Vercel.
- In the Vercel dashboard, set up your project settings and deploy.
For deployment on Vercel, you may need to set the following environment variables in the Vercel dashboard under your project settings:
NODE_ENV:production
Add a URL for monitoring.
{
"url": "https://example.com"
}{
"status": "success",
"message": "URL added for monitoring"
}Check the status of a monitored URL.
{
"url": "https://example.com"
}{
"status": "up",
"responseTime": 123,
"ssl": {
"valid": true,
"expiresAt": "2024-12-31T23:59:59.000Z"
},
"lastChecked": "2024-06-25T12:34:56.000Z",
"downHistory": []
}Remove a URL from monitoring.
{
"url": "https://example.com"
}{
"status": "success",
"message": "URL removed from monitoring"
}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
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
This project is licensed under the MIT License.