Initial MVP: Go + templ Tolino-optimized ebook library scaffold
This commit is contained in:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user