Built with Lumen.
Use together with our Slack bot.
/v1/games/ (get)
/v1/games/{id} (get)
/v1/games/ (post)
/v1/games/{id} (put)
/v1/players/ (get)
/v1/players/{id} (get)
/v1/players/top (get)
/v1/players/top/mostgames (get)
/v1/players/ (post)
/v1/players/{id} (put)
Download Postman collection.
Save it, import it into your Postman client and set up url
as an environment variable to test all the endpoints.
- git clone
- Run
composer install
- Copy .env.sample to .env
- Edit
APP_ENV
(local, stage or production) andAPP_DEBUG
according to what environment you are seting up - Set
APP_KEY
. Should be a random string of at exactly 32 characters - Set the database options in
.env
- Add
SLACK_CLIENT_ID
andSLACK_CLIENT_SECRET
if you want to be able to sync players from Slack.
- Edit
- Run migrations:
php artisan migrate
- (optional) If you want test data, seed the database:
php artisan db:seed
- (optional) If you want test data, seed the database:
- Start work server
php artisan queue:listen
. More options for more stable work server can be found here (supervisor is recomended).
- Some kind of web UI (separate project using the API. React?)
- Update to latest versions of Lumen and libs (Maybe wait for the 5.5 LTS in August)
- Implement new Glicko2 ranking calculator (in progress)
- Implement support for dynamic ladder periods (in progress)
- Fix bugs related to all time vs weekly rankings (in progress)
- Unit tests
- Setup CI tools (TravisCI?)
- Setup code check tools (Scrutinizer?)