A web app where people can register to get email notification whenever Covid-19 vaccine is available in their locality. It uses Co-WIN API from API Setu to find the availability of the vaccine.
I have hosted the site on Azure on my own subscription: https://vaccinenotifier.azurewebsites.net/
A cron job is run twice a day, and if any vaccine is available for the pincode/district, then an email is sent to the requester.
- Clone the repo:
https://github.com/Rajanpandey/Vaccine-Availability-Notifer.git
- Install
XAMPP
software - Cut-Paste the repo into the
htdocs
folder ofxampp
, so it looks like this{xampp-installation-folder}/htdocs/{repo}
. Eg, for me it is:C:/xampp/htdocs/Vaccine-Availability-Notifer
- Run
XAMPP
and startApache
andMySQL
server - Visit
http://localhost/phpmyadmin/
, click on Import from the upper tabs, and selectdata_dump.sql
file to generate the db and tables. - Visit
http://localhost/Vaccine-Availability-Notifer/
to run the app! - Schedule a cron job to run
cronScript.php
or run it manually to send mail. (Note: You need to change the file changeconfig_example.php
toconfig.php
and update the email and password after allowing 'Less secure apps' on Gmail for that email).
- Clone the repo:
https://github.com/Rajanpandey/Vaccine-Availability-Notifer.git
- Install
Docker
software - Go into the
docker
folder and rundocker-compose up -d
to start docker - Open
connect.php
and uncomment the$conn
config for docker - Visit
http://localhost/
to open the site andhttp://localhost:8080/
to open the PHPMyAdmin (MySQL DB) - Schedule a cron job to run
cronScript.php
or run it manually to send mail. (Note: You need to change the file changeconfig_example.php
toconfig.php
and update the email and password after allowing 'Less secure apps' on Gmail for that email). - Run
docker-compose down -v
to shut down the docker service.