No description
Find a file
2024-08-07 15:06:51 +02:00
.github chore: Add dependabot config 2024-08-07 15:06:51 +02:00
bin/cron feat: Add housekeeping bin + slight restructure of cron jobs 2024-08-05 21:07:08 +02:00
html fix: About links covering menu 2024-08-06 23:07:08 +02:00
lib feat: Add statistics to about page 2024-08-06 23:03:34 +02:00
migrations fix: Error in rating calculation 2024-08-05 23:51:02 +02:00
resources/js bump: version 0.4.0 → 0.4.1 2024-08-06 21:07:28 +00:00
view feat: Add statistics to about page 2024-08-06 23:03:34 +02:00
.cz.toml bump: version 0.4.0 → 0.4.1 2024-08-06 21:07:28 +00:00
.gitignore feat: Add commitizen and version file 2024-07-29 22:39:35 +02:00
CHANGELOG.md bump: version 0.4.0 → 0.4.1 2024-08-06 21:07:28 +00:00
config.templ.php fix: Add missing configuration to config file 2024-08-05 21:37:43 +02:00
core.php feat: Add privacy notice page 2024-08-04 20:56:55 +02:00
LICENSE Initial commit 2024-07-26 19:45:40 +02:00
README.md docs: Add README file 2024-08-07 14:53:03 +02:00
version.php bump: version 0.4.0 → 0.4.1 2024-08-06 21:07:28 +00:00

MobMash

This project aims to unravel the answer to the gargantuan query of existential magnitude: Which is the best Minecraft mob?

Visitors are prompted with two mobs and should decide which one they like better. After they choose, the "looser" is replaced with a new candidate. In the background, an Elo-style rating system is keeping track of the individual matches. The rating also determines the next candidate - similar rating are paired up. Within one session, pairings are not repeated.

Tech Stack

Credits

Minecraft content and materials are trademarks and copyrights of Mojang Studios.

The mob names and images are fetched from the Minecraft Wiki (CC BY-NC-SA 3.0). - Thank you for letting me use your API!

The font used is the Minecraft Font by JDGraphics (Public Domain). The icons are Font Awesome v4.7.0 (OFL-1.1 & MIT).

Contribution

Issues and Pull Requests are always welcome!

Local Development

To develop locally, you need a PostgreSQL database and a PHP 8 interpreter. If you don't have a local web server, you can just use the built-in development server of PHP: php -S localhost:8080 -t ./html/

As for configuration, just copy ./config.templ.php to ./config.php, fill out the values, and you are ready to go.

The migrations are automatically applied with the first served request.

You will probably have to run ./bin/cron/updateData.php to create the mob entries in the database and fetch the images. The other files in the ./bin/cron/ are not necessary for most development work, as they will just some cleanup and caching stuff for production.