This is a part of JS code which implemented by me and now using for demo purposes.
http.mjs - implement a simple http client. batch.mjs - batching implementations for large amount of http requests.
tournament-service.mjs - a service implementation contains a common requests to server.
tournament.mjs - a core component for business logic.
client.mjs - an entry point, the main script for adding component to page.