Files
skeleton/README.md
Worker Skeletton 83b0600bf7 Reorganize docs/ per domain structure
docs/ now mirrors www/ structure with per-domain subdirectories:
- docs/<domain>/doku/    - Technische Dokumentation
- docs/<domain>/planung/ - Planung, Meilensteine
- docs/<domain>/todos/   - Aufgaben, TODOs

www/ contains only public/ (Document Root) - nothing else gets deployed.

Readme updated with full structure documentation.
2026-05-25 13:53:02 +02:00

3.3 KiB

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/                    # Dokumentation pro Domain
│   ├── www.example.com/     # Docs für www.example.com
│   │   ├── doku/            # Technische Dokumentation
│   │   ├── planung/         # Planung, Meilensteine
│   │   └── todos/          # Aufgaben, TODOs
│   ├── api.example.com/     # Docs für api.example.com
│   │   ├── doku/
│   │   ├── planung/
│   │   └── todos/
│   └── app.example.com/     # Docs für app.example.com
│       ├── doku/
│       ├── planung/
│       └── todos/
├── www/                     # Webroot (deployed auf Server)
│   ├── 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

# 1. Skeleton klonen
git clone https://git.shadow-land.de/madgerm/skeleton.git mein-projekt
cd mein-projekt

# 2. Domain-Verzeichnisse umbenennen
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. Docs-Ordner umbenennen (parallel zu www)
mv docs/www.example.com docs/www.meine-domain.de
mv docs/api.example.com docs/api.meine-domain.de
mv docs/app.example.com docs/app.meine-domain.de

# 4. README und Repo-Name anpassen
# 5. Git init / remote setzen
git init
git remote set-url origin https://git.shadow-land.de/madgerm/mein-projekt.git

# 6. Weiter geht's

Subdomains deployen

Jedes www/<domain>/public/ Verzeichnis ist der Document Root für die jeweilige Domain.

Caddy Config Beispiel:

www.meine-domain.de {
    root * /srv/www/projekt/www/www.meine-domain.de/public
    php_fastcgi localhost:9000
    file_server
}

Domains

www/ Verzeichnis docs/ Verzeichnis Domain
www/www.example.com/ docs/www.example.com/ www.example.com
www/api.example.com/ docs/api.example.com/ api.example.com
www/app.example.com/ docs/app.example.com/ app.example.com

Docs Struktur

Jeder Domain-Ordner enthält:

  • doku/ — Technische Dokumentation (API-Doku, Datenbank-Schema, etc.)
  • planung/ — Planung, Meilensteine, Decisions
  • todos/ — Aufgaben, TODOs, Issues

Tech Stack

Skeleton ist flexibel — standardmäßig PHP mit SQLite, anpassbar je nach Projekt.

Lizenz

Projektintern — keine externe Lizenz.