Skip to content

About

RosterEdge is an open-source application designed for intuitive and powerful team management. As an open-source project, its development is transparent and its code is freely available to all.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

104 Commits

Folders and files

Repository files navigation

RosterEdge

Teams, fixtures, and standings for sports club staff.

CI React 19 Spring Boot 3.5 PostgreSQL 17 License: MIT

Case study • Quick start • Architecture

RosterEdge team directory with name and mascot filters and five fictional teams

A scheduled fixture belongs on the calendar, but it should not count in the standings until someone records the score. RosterEdge keeps team and staff records, fixture scheduling, and club reports in one workspace. Staff can record results from the fixture list and export standings and financial reports to PDF.

Features

  • Team and staff directories. Organize teams by category and assign catalog roles to club staff.
  • Match scheduling. Choose the event, venue, start and end times, and home and away teams in one form.
  • Result entry. Record or correct a final score without reopening the scheduling form.
  • Season reporting. Review standings, scoring, and schedule density without counting unplayed fixtures as 0–0 draws.
  • Payment reports. Compare payments by method or subscription plan.
  • PDF exports. Download any of the 12 club-scoped reports as a server-generated PDF.
  • Club-scoped access. Sign in with a roster account tied to your club; the API checks access independently of browser navigation.
  • Spanish and English. The app includes translations for both languages.

Preview

These screenshots show the running app with fictional club data.

Result-entry dialog with separate home and away score fields

Record a final score from the match list.

Season standings with points and wins charts and an Export PDF button

Standings count finalized results and can be exported to PDF.

Payment-method report with net revenue, payment counts, and a chart in Colombian pesos

Compare net revenue and payment counts by payment method.

Quick start

Use Node.js 22 with npm, JDK 21, and PostgreSQL 17 with psql. The backend includes a Maven wrapper. Start PostgreSQL and create a disposable database and a role with permission to create tables, sequences, and schemas.

Variable Purpose Default
POSTGRES_DB Database name roster_db
POSTGRES_PORT Local PostgreSQL port 5431
POSTGRES_USER, POSTGRES_PASSWORD Database credentials Required
SPRING_PROFILES_ACTIVE Use dev for local development No active profile
VITE_BACKEND_URL Frontend API base URL including /api, without a trailing slash Required

The example uses PostgreSQL on port 5432. Substitute your local database and role names if they differ, then start the API:

git clone https://github.com/diegnghtmr/roster-edge.git
cd roster-edge
export POSTGRES_DB=rosteredge_demo POSTGRES_PORT=5432 POSTGRES_USER=roster_local
read -rs -p 'Local PostgreSQL password: ' POSTGRES_PASSWORD; printf '\n'
export POSTGRES_PASSWORD
export SPRING_PROFILES_ACTIVE=dev
cd backend
./mvnw spring-boot:run -Dspring-boot.run.arguments=--server.address=127.0.0.1

The API base is http://127.0.0.1:8081/api, with a public GET /api/health/ endpoint. Flyway migrates the database on startup; it does not create demo accounts or populate catalogs.

In a second terminal, from the checkout:

cd frontend
npm ci
VITE_BACKEND_URL=http://127.0.0.1:8081/api npm run dev -- --host 127.0.0.1 --port 5173 --strictPort

Open http://127.0.0.1:5173. To try the app without provisioning an account, import the synthetic demo into the empty local database.

Architecture

The browser calls the Spring Boot API over HTTP; only the API connects to PostgreSQL. React Router guards and lazy-loads routes, so charts load with their reports. The API generates PDFs from the same club-scoped data as the JSON reports; the browser only downloads the file. The API also commits match scheduling, team assignments, and the in-app notification in one transaction.

flowchart LR
    SPA["Club workspace (React SPA)"] -->|"HTTP / JSON and PDF"| API["Club-scoped REST API (Spring Boot)"]
    API -->|"JDBC / SQL"| DB["PostgreSQL (Flyway migrations)"]
Loading

Tech stack

Layer Technology
Web app React 19, TypeScript, Vite, React Router, TanStack Query
Reports and exports Recharts (charts), OpenPDF (API downloads)
API Java 21, Spring Boot 3.5, Spring Data JDBC
Database PostgreSQL 17, Flyway
Testing JUnit with PostgreSQL, Vitest and Testing Library, Playwright and Chromium

Testing

Keep the database credentials exported as above, but point POSTGRES_DB at a separate disposable database. From the repository root:

(cd backend && SPRING_PROFILES_ACTIVE=test ./mvnw -B verify)
(cd frontend && npm ci && NODE_OPTIONS=--no-experimental-webstorage npm run test -- --run)
(cd frontend && npm run lint)
(cd frontend && VITE_BACKEND_URL=http://127.0.0.1:8081/api npm run build)

Backend tests cover empty schemas, restarts, authorization, rollback, and report correctness. CI runs the backend and frontend suites, builds the frontend, and runs a Chromium smoke test against the packaged API and built frontend on pushes and pull requests targeting main.

Documentation

Team

RosterEdge is a team project. Contributors credited in the repository history:

License

RosterEdge is licensed under the MIT License.

About

RosterEdge is an open-source application designed for intuitive and powerful team management. As an open-source project, its development is transparent and its code is freely available to all.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages