Vaccine Notifier is a quick site I threw together that provides notifications for vaccine availability information provided by the service Vaccine Spotter. I would like to rewrite this website in something more modern like Node sometime.
- A web server with PHP is required. A MySQL database will also be required. Ensure PHP >= 7.4 is installed.
- You will also need credentials to an email account, a Google Maps API key, and a VAPID key
- Run
composer installto install dependencies - Prevent web access to
src/,composer.json,composer.lock,vendor,README.MD,.git,.ideaand.gitignorein your web server configuration (or make sure these are not uploaded to your web root). - Run
src/vaccine.sqlin your MySQL server to generate thevaccinedatabase - Copy and fill in
config.example.php, saving toconfig.php - Setup a cronjob to access
run.phpat your desired frequency. Ensureself_ipis correct inconfig.phpso thatrun.phpwill not reject your request. Below is an example for every minute:
* * * * * curl https://vaccine.andrewtran.xyz/run.php