Files
1bis8/README.md
T

42 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 1 bis 8 Party – Mobile Web-App
Das ultimative Gesellschaftsspiel über Selbsteinschätzung, Vorurteile und echte
Offenbarungen – als mobile Web-App umgesetzt: offizielle Spielregeln, 20
Statement-Karten in 5 Kategorien und ein interaktiver Spielleiter für 3–8
Spieler mit automatischer Mehrheits-Punkteberechnung.
**Live:** https://1bis.hocks.eu/ (Alias: https://1bis8.hocks.eu/)
## Struktur
| Pfad | Inhalt |
|---|---|
| `app/` | React + TypeScript + Vite + Tailwind (Quelle der Web-App) |
| `app/src/data/game.ts` | Kategorien, 20 Statement-Karten, Regelwerk-Texte |
| `app/src/lib/scoring.ts` | Punkteberechnung nach offiziellen Regeln |
| `server/` | Docker-Stack für den VPS (Web + Postfix-Relay + Mail-API) |
| `docs/` | Original-Spielregeln (PDF) |
## Entwicklung
```bash
cd app
npm install
npm run dev # Dev-Server (Port 3000, --port für andere Ports)
npm run build # Produktions-Build → app/dist/
```
## Deployment (VPS 82.165.218.97, /opt/1bis8)
```bash
cd app && npm run build
scp -P 38592 -r dist root@82.165.218.97:/opt/1bis8/web/
ssh -p 38592 root@82.165.218.97 "cd /opt/1bis8 && docker compose up -d --build"
```
- TLS, Subdomains und Routing: Nginx Proxy Manager (`npm_default`-Netz)
- E-Mail: `onebis8-mail` (Postfix-Relay, intern) + `onebis8-mail-api`,
Kontaktformular sendet an `axel@hocks.eu` (Muster: Mieterportal-Stack)
- Konfiguration: `server/app.env` (Mail-Token) und `server/mail/mail.env`
liegen nur auf dem Server, nicht im Repo