⚠️ Work in Progress - This repo is under active development. UI, routes, and structure may change frequently.
Web frontend for corner-pocket-backend
This repository contains the web client for Corner-Pocket (match tracking for tournaments, leagues, and friendly games). The web app talks to the backend REST API and renders a UI in the browser.
- Python + Flask - Lightweight web server (pages + simple API calls during development)
- HTML/CSS/JS - UI (framework choice TBD)
cd corner-pocket-web
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txtcat > .env << 'EOF'
BACKEND_BASE_URL=http://localhost:8000
EOFexport FLASK_APP=wsgi.py
flask run --reload --port 5173Open http://localhost:5173.
Build and run:
cd corner-pocket-web
docker build -t corner-pocket-web .
docker run --rm -p 5173:5173 -e BACKEND_BASE_URL=http://host.docker.internal:8000 corner-pocket-webSet BACKEND_BASE_URL to your running backend (default: http://localhost:8000).
Useful backend endpoints:
GET /healthGET /docs(Swagger UI)
| Variable | Description | Default |
|---|---|---|
BACKEND_BASE_URL |
Base URL for corner-pocket-backend |
http://localhost:8000 |