first commit

This commit is contained in:
Johan
2026-02-02 13:56:58 +01:00
commit 5156438be5
11 changed files with 388 additions and 0 deletions

47
README.md Executable file
View File

@@ -0,0 +1,47 @@
# Task Manager
## Installation & usage
### Backend
```bash
cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --host 127.0.0.1 --port 8000
```
### Frontend
```bash
cd frontend
python3 -m http.server 5173
```
## Quelques commandes `curl`
### Créer une tâche
```bash
curl -s -X POST http://127.0.0.1:8000/tasks \
-H "Content-Type: application/json" \
-d '{"title":"Écrire tests API","description":"Ajouter des assertions sur /tasks"}' | jq
```
### Lister les tâches
```bash
curl -s http://127.0.0.1:8000/tasks | jq
```
### Mettre à jour une tâche
```bash
curl -s -X PUT http://127.0.0.1:8000/tasks/1 \
-H "Content-Type: application/json" \
-d '{"status":"DONE"}' | jq
```
### Supprimer une tâche
```bash
curl -i -X DELETE http://127.0.0.1:8000/tasks/1
```