Skip to content

Latest commit

 

History

1,030 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEL Hockey Stats Frontend

Public frontend for DEL hockey statistics. This repository contains a static AngularJS frontend for presenting player, team, and career data.

Project status

  • Architecture: static single-page app with AngularJS 1.7
  • Styling: Bootstrap 4, Angular Material, and project-specific CSS files
  • Data sources: JSON/CSV files from data/ as well as external assets
  • Special note: This repository is a public subset of del_stats_frontend_ext

Repository structure

  • /index.html – application entry point
  • /js – AngularJS app, routing, and controllers
  • /css – stylesheets
  • /cfg – configuration and column definitions
  • /custom_directives – AngularJS templates for reusable tables and UI blocks
  • /*.html – route templates

Local usage

Since this is a static frontend, a simple local web server is sufficient:

cd del_stats_frontend
python3 -m http.server 8000

You can then open the application at http://localhost:8000/index.html.

Tooling and CI

A small Node-based tooling layer is available for initial reproducible repository checks.

pnpm install --frozen-lockfile
pnpm check

At the moment, the CI intentionally checks only the core repository and workflow files with Prettier. The workflow in .github/workflows/ci.yml uses Node.js 22 together with pnpm and runs on pushes and pull requests. This keeps the setup small, understandable, and easy to port.

The GitHub Action is located at .github/workflows/ci.yml and runs on pushes and pull requests.

Deployment and runtime data

Hosting and release process

The frontend is a fully static application with no build step. Releases are deployed by pulling the latest commits directly into the web server's document root:

git pull

No compilation, bundling, or restart is required. The web server serves the files as-is.

Runtime data files

None of the files under data/ are tracked in this repository. The .gitignore rule data/* excludes all of them. They are generated by the del_stats_backend pipeline and must be copied into place before the frontend is usable.

The following structure is expected at runtime:

Path Description
data/attendance.json Season-wide attendance figures
data/clinched_data.json Clinching state per team and season
data/del_players.json Master player list
data/po_series.json Playoff series results
data/{season}/ Per-season player, goalie, and team game stats (JSON and CSV)
data/career_stats/ Aggregated career stats per player and team
data/h2h_data/ Head-to-head records for each team pair
data/team_records/ All-time and playoff records per team
data/calendars/ ICS calendar files per team (also excluded via *.ics)
po/ Player portrait images (excluded via po/*)

Relationship with the private repository

This repository is a public subset of del_stats_frontend_ext. Any change merged here must be ported to the private superset repository manually. The data/ pipeline itself lives in del_stats_backend and is independent of both frontend repositories.

Maintenance principles

To keep changes traceable between the public and private repositories:

  1. Keep changes small and clearly focused.
  2. Preserve the existing file structure and paths whenever possible.
  3. Only perform refactorings when they provide clear value and are easy to port.
  4. In change descriptions, always specify which files and behavior are affected.

Current improvement opportunities

  • Continue improving the README, contributor documentation, and repository hygiene
  • Further centralize configuration such as season values and data sources
  • Add more automated checks and CI coverage
  • Gradually split large controllers into smaller units

Contributing

See CONTRIBUTING.md.

About

Enhanced hockey statistics for the DEL (Frontend)

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages