A backend server written using nodejs, express and typescript which checks cowin slot availability and notifies on flock when a slot becomes available. Currently only checks for Washim District, Maharashtra, but can be easily extended to any district/pincode.
- Run
npm installto install npm dependencies - Run
npm startto start the server
- Route -
GET /api/check_and_notify_washim - Checks if any cowin slots available in Washim District, Maharashtra in week starting from today
- If available, then sends the alert to flock
- Route -
GET /api/scheduler_start - Start scheduler which triggers the above API every 5 minutes
- Route -
GET /api/scheduler_stop - Stops above scheduler