API/Backend for Misirlou, Ripple's system for managing tournaments
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Morgan Bazalgette 24a4aaa0a7
Add registration to single-player tournaments
1 year ago
classes Change RippleAPI's user-agent 1 year ago
http Add registration to single-player tournaments 1 year ago
methods remove beatmap requests 1 year ago
migrations Remove AUTO_INCREMENT 1 year ago
models Add registration to single-player tournaments 1 year ago
vendor Add OAuth start + finish 1 year ago
.gitignore Vendor dependencies with dep 1 year ago
Gopkg.lock Add OAuth start + finish 1 year ago
Gopkg.toml Add OAuth start + finish 1 year ago
LICENSE bump copyright year 1 year ago
README.md Update readme 1 year ago
common_functions.php fixes 2 years ago
composer.json Add sentry 2 years ago
composer.lock Add sentry 2 years ago
config.sample.php web push notifications for register and invites 2 years ago
include.php Add sentry 2 years ago
main.go Add OAuth start + finish 1 year ago
registration_validation.php Add status RegClosedRequestsOpen, remove temp fixes 2 years ago
router.php Add application/json content type to all responses 1 year ago

README.md

Misirlou API

Three tomatoes are walking down the street - a poppa tomato, a momma tomato, and a little baby tomato. Baby tomato starts lagging behind. Poppa tomato gets angry, goes over to the baby tomato, and smooshes him… and says, ‘ketchup!’

Misirlou is Ripple’s system for managing tournaments. This is the API/backend, and why write it in PHP, you may ask? Because I thought that the thing wouldn’t have grown and that writing a few PHP files would have been enough. What a fool!

To get started, simply copy config.sample.php to config.php, and edit the values in $config. Everything should be pretty obvious and need no explanation.

Done that, create/update the database schema by running from the command line migrate.php. Finally, create an nginx config so that all requests are routed to /router.php:

server {
	autoindex on;
	listen 80;
	server_name quarterpounderwithcheese.org;
	root /home/howl/oc/misirlou-api;
	charset utf-8;
	location / {
		try_files $uri $uri/ /router.php;
	}
	include php;
}

(The configuration above is actually not recommended in production - you should at least remove the autoindex.)