Example Project to create and maintain a full stack application from only one spec file with an AI coding agent.
  • Python 53.4%
  • JavaScript 45.5%
  • Dockerfile 0.7%
  • HTML 0.4%
Find a file
leon 1050c0e0e1
All checks were successful
Build and Deploy / build-and-push (push) Successful in 50s
re-evaluate using per-fold models to match training metrics
2026-05-31 14:10:51 +02:00
.forgejo/workflows History fix 2026-04-25 14:25:48 +02:00
backend re-evaluate using per-fold models to match training metrics 2026-05-31 14:10:51 +02:00
db Initial commit 2026-04-20 20:31:46 +02:00
frontend Fix white borders 2026-05-28 23:05:31 +02:00
scraper Initial commit 2026-04-20 20:31:46 +02:00
.env.example Initial commit 2026-04-20 20:31:46 +02:00
.gitignore Initial commit 2026-04-20 20:31:46 +02:00
compose-registry.yaml Initial commit 2026-04-20 20:31:46 +02:00
docker-compose.yml Initial commit 2026-04-20 20:31:46 +02:00
README.md Initial commit 2026-04-20 20:31:46 +02:00
SPECIFICATION.md Initial commit 2026-04-20 20:31:46 +02:00

Sportpark Visitor Analytics

A hobby project exploring how far you can get building a full-stack application from a single specification document — with AI assistance and a few manual tweaks.

The app scrapes live visitor counts from a fitness club, stores historical data, and provides an analytics dashboard with occupancy trends, personalized recommendations, and ML-based visitor predictions.

What's in here

Component Tech Purpose
Scraper Python + APScheduler Polls visitor count + weather data on a schedule
Backend FastAPI REST API for analytics, recommendations, ML training & prediction
Frontend React + Recharts Dashboard with live status, charts, heatmap, predictions
ML Pipeline scikit-learn, XGBoost, LightGBM, Optuna Visitor count forecasting + realtime ghost correction
Database PostgreSQL Time-series storage for visitor counts and weather
Deployment Docker Compose Single-command local deploy

How it was built

The entire application — scraper, backend API, ML pipeline, frontend dashboard, database schema, and Docker setup — was generated from SPECIFICATION.md using AI coding tools. Manual additions were limited to tweaks and iterative refinements.

Quick start

cp .env.example .env
# Edit .env with your API URL and a strong database password
docker compose up -d

The dashboard is available at http://localhost:18080 and the API at http://localhost:18432.

Configuration

See .env.example for all available environment variables.

Project specification

The full specification that this project was built from is in SPECIFICATION.md.