- www/www -> www/www.domain.de - www/api -> www/api.domain.de - www/game -> www/game.domain.de Each domain now has its own directory with public/ Document Root.
92 lines
2.5 KiB
Markdown
92 lines
2.5 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.domain.de/ # www.domain.de
|
|
│ │ └── public/ # Document Root
|
|
│ │ └── index.php
|
|
│ ├── api.domain.de/ # api.domain.de
|
|
│ │ └── public/ # Document Root
|
|
│ │ └── index.php
|
|
│ └── game.domain.de/ # game.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. Domain-Verzeichnisse umbenennen (falls andere Domains gewünscht)
|
|
mv www/www.domain.de www/meine-domain.de
|
|
mv www/api.domain.de www/meine-api.domain.de
|
|
mv www/game.domain.de www/mein-game.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.domain.de/` | www.domain.de | Hauptseite |
|
|
| `www/api.domain.de/` | api.domain.de | REST API |
|
|
| `www/game.domain.de/` | 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.
|