An expanded version of miltydraft.com, with saving/sharing drafts across sessions.
To install a local copy of this app you can clone it from the Git Repo:
git@github.com:shenanigans-be/miltydraft.git
Install the PHP dependencies by running composer install
in the root directory
Lastly you'll need to create a .env file (also in the root directory).
See .env.example
for details.
Frontend runs on vanilla JS/jQuery (I'm aware jQuery is a bit of a blast from the past at this point; sue me and/or change it and PR me if you want) and the Back-end is vanilla PHP. As such there's no build-system, or compiling required except for the steps described above. You will need to run it through Apache in order to make the URL rewriting work (for the draft page). If you're unfamiliar with setting this up, we recommend using something like XAMPP
- Players come in on index.php and choose their options.
- A JSON config file is created (either locally or remotely, depending on .env settings) with a unique ID
- That Draft ID is also the Draft URL: APP_URL/d/{draft-id} (URL rewriting is done via .htaccess)
- Players (or the Admin) make draft choices, which updates the draft json file (with very loose security, since we're assuming a very low amount of bad actors)