Circle of Suck visualises the largest chain of negative scorelines for a given season of a competition.
- python 3.11
-
Clone and change to the directory:
git clone https://github.com/joaonunomota/circle-of-suck.git cd circle-of-suck
-
Create and activate a virtual environment:
Unix based systems:
virtualenv env source env/bin/activate
Windows:
py -m venv env .\env\Scripts\activate
-
Install Python and Node requirements:
pip install -r requirements.txt
npm install
-
Add data from football-data.org:
Fetch data for the desired competitions and seasons.
python competitions.py update -c <competition> -s <season> -p <path> -t <token>
Generate an index file once all the data is fetched.
python competitions.py index -p <path>
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Lint with ESLint
npm run lint