Files
skeleton/README.md
Worker Skeletton 9d798bab78 Rename example domains to generic scheme
Use example.com instead of domain.de/game references to make
the skeleton truly generic and not tied to any specific project.
2026-05-25 13:48:03 +02:00

92 lines
2.6 KiB
Markdown

# Project Skeleton
Allgemeines Projekt-Skeleton für neue Webprojekte mit Subdomain-Struktur.
## Verzeichnisstruktur
```
skeleton/
├── .git/ # Git Repository
├── .gitignore
├── AGENTS.md # opencode-cli Kontext
├── .opencode/ # opencode-cli Konfiguration
│ ├── settings.json
│ ├── rules/
│ │ ├── general.md
│ │ ├── backend.md
│ │ ├── frontend.md
│ │ └── security.md
│ └── skills/
│ └── help/SKILL.md
├── docs/ # Projektdokumentation
│ ├── doku/
│ └── planung/
├── www/ # Subdomains (ein Verzeichnis pro Domain)
│ ├── www.example.com/ # www.example.com
│ │ └── public/ # Document Root
│ │ └── index.php
│ ├── api.example.com/ # api.example.com
│ │ └── public/ # Document Root
│ │ └── index.php
│ └── app.example.com/ # app.example.com
│ └── public/ # Document Root
│ └── index.php
└── README.md
```
## Verwendung
### Neues Projekt aus Skeleton erstellen
```bash
# 1. Skeleton klonen oder kopieren
git clone https://git.shadow-land.de/madgerm/skeleton.git mein-projekt
cd mein-projekt
# 2. Domain-Verzeichnisse umbenennen (falls andere Domains gewünscht)
mv www/www.example.com www/www.meine-domain.de
mv www/api.example.com www/api.meine-domain.de
mv www/app.example.com www/app.meine-domain.de
# 3. README und Repo-Name anpassen
# 4. Git init / remote setzen
git init
git remote set-url origin https://git.shadow-land.de/madgerm/mein-projekt.git
# 5. Weiter geht's
```
### Subdomains deployen
Jedes `www/<subdomain>/public/` Verzeichnis ist der Document-Root für die jeweilige Subdomain.
**Caddy Config Beispiel:**
```
www.meine-domain.de {
root * /srv/www/projekt/www/www.meine-domain.de/public
php_fastcgi localhost:9000
file_server
}
```
## Subdomains
| Verzeichnis | Domain | Beschreibung |
|-------------|--------|---------------|
| `www/www.example.com/` | www.example.com | Hauptseite |
| `www/api.example.com/` | api.example.com | REST API |
| `www/app.example.com/` | app.example.com | Applikation |
## Docs
- `docs/planung/` — Projektplanung, TODOs, Meilensteine
- `docs/doku/` — Technische Dokumentation
## Tech Stack
Skeleton ist flexibel — standardmäßig PHP mit SQLite, anpassbar je nach Projekt.
## Lizenz
Projektintern — keine externe Lizenz.