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 install
to install dependencies - Prevent web access to
src/
,composer.json
,composer.lock
,vendor
,README.MD
,.git
,.idea
and.gitignore
in your web server configuration (or make sure these are not uploaded to your web root). - Run
src/vaccine.sql
in your MySQL server to generate thevaccine
database - Copy and fill in
config.example.php
, saving toconfig.php
- Setup a cronjob to access
run.php
at your desired frequency. Ensureself_ip
is correct inconfig.php
so thatrun.php
will not reject your request. Below is an example for every minute:
* * * * * curl https://vaccine.andrewtran.xyz/run.php