Free services deployed on Render.com are spun down after periods of inactivity. The implemented solution is to ping the endpoint at regular intervals.
To install and execute the service locally, follow these instructions:
-
Clone the repository to your local machine:
git clone https://github.com/KunalRajput-git/keep-server-alive.git
-
Navigate to the project directory:
cd keep-server-alive
-
Install dependencies using npm:
npm install
-
Start the server:
npm start
- After cloning it locally, add your endpoints inside constants.js.
- Deploy it onrender.
- Add the deployed endpoint in constants.js to enable self-pinging and keep the service alive.
- Node.js: Backend runtime environment.
- Axios: Promise-based HTTP client for making HTTP requests.
- Nodecron: Library for scheduling tasks based on cron expressions.
This project is licensed under the MIT License.
For inquiries or support, please reach out to kunalrajput-git.