Initial my2dos Django app
This commit is contained in:
@@ -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>/`
|
||||
|
||||
Reference in New Issue
Block a user