Keep your projects alive with this simple pinger.
If you want to add your own urls to the pinger :-
- Fork this repo.
- Edit the urls array in index.js to add your own urls.
- Push the changes to your forked repo.
- Go to https://github.com/crizmo/pingpal and click on the "New Pull Request" button.
- Open a pull request and wait for it to be merged.
- Once the pull request is merged, your urls will be added to the pinger.
- Make sure you have Node.js and npm installed on your system.
- Clone this repository or download the code.
- Open a terminal and navigate to the project directory.
- Run the following command to install the dependencies:
npm install
- Open the index.js file in a text editor.
- Edit the urls Cluster array to add your own URLs.
const urlClusters = [
{
name: "Cluster 1",
urls: [
"https://discord-cards.kurizu.repl.co/api/compact/784141856426033233",
"https://anyanime-api.kurizu.repl.co/",
],
},
{
name: "Cluster 2",
urls: [
"https://xlsxmongoapi.kurizu.repl.co/",
"https://pinscrape.onrender.com/",
],
},
// Add more URL clusters with names here
];
- Save the file.
- Open a pull request to add your URLs to the pinger.
- Once the pull request is merged, your URLs will be added to the pinger.
- Start the server by running the following command:
npm start
- The server will start running on port 3000.
- Open your web browser and navigate to http://localhost:3000 to confirm that the server is running.
- Use the following endpoints:
- /status: Returns the status of each URL.
- /keepalive: Confirms that the keep-alive functionality is working.
- You can modify the fetch interval in the setInterval call in the keepReplAlive function.
- Customize the URLs in the urls array to suit your requirements.
This project is licensed under the MIT License.