- Loads Tailwind CSS and Font Awesome.
- Contains a grid container for displaying teams.
- Loads the main JS module: config-loader.js.
- Fetches team data from
/api/config. - For each team, creates a row with the team name and match status icons.
- Uses matchStatus to render match results.
- Exports a function matchStatus(matches) that returns a fragment of icons:
- Green check for wins
- Red cross for losses or other scores.
- Defines teams, each with a list of matches (opponent and score).
- Includes settings like
max_teamsandallow_duplicates.
- Uses Tailwind CSS via CDN.
- Custom styles can be added in index.css.
-
Install dependencies:
npm install -
Start the server:
npm start -
Open http://localhost:3000 in your browser.
- Add more teams or matches in teams.yml.
- Customize frontend components in components.
- Add new routes or API endpoints in index.js.