The Team
Petty Theft Row is a men's slowpitch softball team based in New York City. We have played in a number of recreational leagues across the city since spring, 2023.
Tech Stack
| Framework | Phoenix 1.8 + LiveView |
| Language | Elixir |
| Database | SQLite |
| CSS | Tailwind CSS v4 + monospace.css |
| JS | TypeScript + esbuild |
| Font | Andrewsevka |
Architecture
┌──────────────────────────────────┐
│ VPS │
│ │
│ ┌────────────────────────────┐ │
│ │ Traefik (reverse proxy) │ │
│ │ :443 ── Let's Encrypt TLS │ │
│ └─────────────┬──────────────┘ │
│ │ │
│ ┌───────┴────────┐ │
│ │ blue / green │ │
│ │ rolling deploy │ │
│ └───┬────────┬───┘ │
│ │ │ │
│ ┌──────┴─┐ ┌────┴─────┐ │
│ │ :4001 │ │ :4002 │ │
│ │ (blue) │ │ (green) │ │
│ └────┬───┘ └────┬─────┘ │
│ └─────┬────┘ │
│ │ Phoenix │
│ ┌─────────────┴──────────────┐ │
│ │ SQLite /opt/.../data/ │ │
│ └────────────────────────────┘ │
│ │
└──────────────┬───────────────────┘
│
│ presigned URLs
▼
┌────────────────────────────┐
│ S3-compatible storage │
│ (uploads / photos) │
└────────────────────────────┘