Caution
This repository will no longer be maintained; check out the AnimeCon Volunteer Manager instead.
This repository contains a Volunteer Portal backend implementation for the AnimeCon 2021 festival. The frontend may be found in the volunteer-portal project, also published on GitHub.
This project has been designed specifically for AnimeCon, and will not consider contributions that are not immediately applicable to AnimeCon.
The frontend and backend communicate with each other through a set of APIs, each of which share serve.php as their entry point, which then delegates to Api.php for actual functionality.
In order to run this service, you will need access to a server that supports PHP 8.0.2 or later. After checking out this respository and executing composer install
, follow these steps:
- Grant read/write permissions to the
api/cache/
directory for the webserver. - Create a
api/configuration/configuration.json5
file based on the example. - Create a
api/configuration/google-credentials.json
file containing Google authorization credentials. - Run
api/google-auth.php
on the CLI to establish an authorization token. - Set up
api/services/execute.php
to be executed every minute using a cronjob.