Foosball Ranking System written entirely in NodeJS/React
Ingredient used to make this system:
- NodeJS
- ExpressJS (for API JSON request/response)
- React
- Elo-rank
- UUID
- POJOs
- YARN/NPM
- Download the repo.
- Navigate to the project root folder, run
npm install
ornpm i
. - To start up API webserice, type
yarn start
. - To serve front end app, type
yarn serve
.
Response Payload: A list of all players is returned.
{
"name": <player name>
}
Response Payload: A new player is successfully entered in the system.
{
"winners": [
<player 1 name>,
<player 2 name>,
],
"losers": [
<player 3 name>,
<player 4 name>,
]
}
Response Payload: A new match with paired opponents is created; and their respective opponents' win ratios are calculated and returned.
Response Payload: A list of all recent played matches is returned.
An interface to view the JSON payload message when interacting with the API services.
- To host it live in Heroku/AWS.
- Use a graph API to display matches over time.
- Replace the UI json viewer object with more useful actual form input fields.
For more information on how players ranking are determined during the games.