← Back to listings

rcc-modern

rcc modern

Path: /home/moose/Projects/rcc-modern

Open project Web UI

README

# rcc-modern

A modern JavaScript/Node clone of the legacy `~/rcc` app.

## Included legacy-equivalent workflows
- Pick entry for upcoming games
- Locked picks shortly after tip-off (5-minute grace)
- Per-game standings using RCC adjusted-score formula
- Season standings with games played and participation rate
- MOTD display and admin editing
- Admin entry of actual game scores
- Player switching (acts like logged-in user context for now)

## Modernized UI upgrades
- Responsive single-page app
- Animated cards and lightweight transitions
- Visual standings chart
- Faster client-side refresh patterns
- Cleaner typography, spacing, and high-contrast palette

## Run
```bash
cd /home/moose/Projects/rcc-modern
npm start
```

Defaults:
- Host: `0.0.0.0`
- Port: `3200`

## Data model
Current storage is JSON at:
- `data/store.json`

Override path:
```bash
RCC_DATA_PATH=/path/to/store.json npm start
```

## API
- `GET /api/bootstrap?user=<username>`
- `GET /api/games?user=<username>`
- `GET /api/standings`
- `GET /api/game-standings?gameId=<id>`
- `POST /api/picks`
- `POST /api/admin/score`
- `POST /api/admin/motd`

## Next parity step (optional)
If you want exact backend parity with legacy RCC, I can swap the JSON store for PostgreSQL tables (`games`, `scores`, `gamescores`, `userlist`, `userrequests`) and port the auth flow.