92 lines
2.4 KiB
Markdown
92 lines
2.4 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
|
|
│ ├── api/ # api.domain.de
|
|
│ │ └── public/ # Document Root
|
|
│ │ └── index.php
|
|
│ ├── game/ # game.domain.de
|
|
│ │ └── public/ # Document Root
|
|
│ │ └── index.php
|
|
│ └── www/ # www.domain.de
|
|
│ └── 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. Subdomain-Verzeichnisse umbenennen
|
|
mv www/api www/meine-api-subdomain
|
|
mv www/game www/mein-game-subdomain
|
|
mv www/www www/meine-www-subdomain
|
|
|
|
# 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:**
|
|
```
|
|
subdomain.domain.de {
|
|
root * /srv/www/projekt/www/subdomain/public
|
|
php_fastcgi localhost:9000
|
|
file_server
|
|
}
|
|
```
|
|
|
|
## Subdomains
|
|
|
|
| Verzeichnis | Subdomain | Beschreibung |
|
|
|-------------|-----------|---------------|
|
|
| `www/www/` | www.domain.de | Hauptseite |
|
|
| `www/api/` | api.domain.de | REST API |
|
|
| `www/game/` | game.domain.de | Spielkomponente |
|
|
|
|
## 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.
|