Initial MVP: Go + templ Tolino-optimized ebook library scaffold

This commit is contained in:
Arne
2026-08-06 06:52:41 +02:00
parent bf077c0cf6
commit 8d499c28a7
11 changed files with 440 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
# eBook Library (Go + templ)
Minimalistische eBook-Bibliothek für den Tolino-Webbrowser.
## Features (MVP)
- Listet EPUB/PDF-Dateien aus `books/`
- Detailseite pro Buch
- Download-Link pro Buch (für Tolino)
- Schlichtes, kontrastreiches UI ohne JavaScript-Abhängigkeit
## Voraussetzungen
- Go 1.22+
- [templ](https://github.com/a-h/templ)
Templ CLI installieren:
```bash
go install github.com/a-h/templ/cmd/templ@latest
```
## Start
1. Abhängigkeiten laden:
```bash
go mod tidy
```
2. Templates generieren:
```bash
templ generate
```
3. Server starten:
```bash
go run ./cmd/server
```
4. Browser öffnen:
- `http://localhost:8080`
## Bücher hinzufügen
Lege deine Dateien in den Ordner `books/`:
- `.epub` (bevorzugt)
- `.pdf` (optional)
## Konfiguration
Umgebungsvariablen:
- `ADDR` (Standard `:8080`)
- `BOOKS_DIR` (Standard `books`)