Live: http://futsal.logeks.com
This is just a front-end application written with Angular 17 by using Angular Material Components to generate random but as balanced as possible teams for playing football. As much as it tries to make balanced teams, there is always some randomness in the code, so that things will get generated differently everytime. Which brings us to a point that might never exactly balanced but as close as possible.
- Each player will have 3 rates: attack, defense and condition with a position information
- This helps the application to use a biased calculation to generate a total score for a player then do the distribution depending on the positions as equally as possible
- You can hide the player ratings at the end of the generation with a toggle button before sending it off to your lads ;)
- This application is written on Stackblitz. You can use the URL to directly start developing there: https://stackblitz.com/~/github.com/Gnyblast/Futsal-Team-Builder
OR
- You can just clone and run
npm install && npm run startto start the test server, if you havenpmandangular 17pre-installed
OR With Docker
From the Project Top-Level:
- First build the image:
sudo docker build -t futsal-builder:latest -f docker/Dockerfile . - And run it to start the development server:
sudo docker run -v <path-to-top-level>:/app -p 4200:4200 futsal-builder:latest, you can add-dif you want detached
OR With Podman
From the Project Top-Level:
- First build the image:
podman build -t futsal-builder:latest -f podman/Containerfile . - And run it to start the development server:
podman run -v <path-to-top-level>:/app -p 4200:4200 futsal-builder:latest, you can add-dif you want detached
Anyone with a Typescript knowledge is welcome to extend the application
Demo button can be used to auto-fill the players from src/assets/test_players.json so that you can test the code quicker.
-
You can just clone and run
npm install && npm run buildto start the build, if you havenpmandangular 17pre-installed. -
You can use either
podmanordockerto build the image first as follows (note that this is same image as development one, so if you already have it, you don't need to re-build the image) and run it withbuildcommand:-
Docker:
sudo docker build -t futsal-builder:latest -f docker/Dockerfile .sudo docker run -v <path-to-top-level>:/app futsal-builder:latest build
-
Podman:
podman build -t futsal-builder:latest -f podman/Containerfile .podman run -v <path-to-top-level>:/app futsal-builder:latest build
-
And results must be in dist directory of your project top-level.