https://github.com/rashjredmund/api-re-starter
API starter project. cron-job to constantly restart web services shutdown by the free tier of services like render.com
https://github.com/rashjredmund/api-re-starter
cron-job cronjob-scheduler
Last synced: 6 months ago
JSON representation
API starter project. cron-job to constantly restart web services shutdown by the free tier of services like render.com
- Host: GitHub
- URL: https://github.com/rashjredmund/api-re-starter
- Owner: RashJrEdmund
- Created: 2024-07-18T13:58:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-06T20:01:14.000Z (about 1 year ago)
- Last Synced: 2025-02-12T00:51:36.568Z (8 months ago)
- Topics: cron-job, cronjob-scheduler
- Language: TypeScript
- Homepage: https://api-re-starter.onrender.com/
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Welcome to my API re-starter application
- Table of context
- [About](#about)
- [Getting Started](#getting-started-for_developers)
- [Adding new API](#adding-new-api-for_developers)
- [Adjusting cron time](#adjusting-cron-time)### About
- This is a cron job application that constantly hits my online APIs to make sure the remain alive
### Getting started [For_Developers]
- Clone repo with
```bash
git clone git@github.com:RashJrEdmund/api-re-starter.git
```- Navigate to project with
```bash
cd api-re-starter
```- Install packages and start server
```bash
npm install # or npm i
npm run dev
```### Adding new API [For_Developers]
- Navigate to `/public/cron-data.json` and add the new API, following the same format as the others
```bash
interface CronData {
server_name: string;
api_url: string;
}
```### Adjusting cron time
- current cron - time is set to `"*/12 * * * *"` meaning `"every 12 mins"`
- To verify or adjust this interval, visit \*_**\***_\*