Initial my2dos Django app

This commit is contained in:
rucki
2026-08-22 13:45:40 +02:00
parent cb1931ce60
commit 4e542c2b8e
32 changed files with 1070 additions and 0 deletions
+35
View File
@@ -1,2 +1,37 @@
# my2dos
Kleine Django/HTMX/Alpine.js-App für Aufgaben, Notizen und Links.
## Setup
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
```
Login aktuell über `/admin/login/`, danach App unter `/`.
## Schnell-Erfassung
- `/todo` erstellt eine Aufgabe
- `/note` erstellt eine Notiz (Default)
- `/link` erstellt einen Link-Eintrag
- `/public` macht den Eintrag öffentlich, sonst privat
- `#tag` gruppiert Einträge nach Tags
- `[[note:1]]`, `[[todo:2]]` oder `[[3]]` verlinkt intern auf andere Einträge
- Markdown wird gerendert
- Anhänge können beim Erstellen hochgeladen werden
## API
Authentifiziert per Django-Session:
- `GET /api/items/`
- `POST /api/items/` JSON z.B. `{ "content": "/todo Text #tag /public" }`
- `GET /api/items/<id>/`
- `PATCH /api/items/<id>/`
- `DELETE /api/items/<id>/`