Files
ENI-DevSecOps/README.md
Johan 0d0dd3cfcf refactor: configure pre-commit and CI/CD pipeline
- Restructured GitHub Actions workflow with separate jobs for linting, testing, and security
- Configured pre-commit hooks: black, isort, flake8, yamllint
- Added setup.cfg for centralized configuration
- Relaxed flake8 rules (B008, D* docstrings) for FastAPI compatibility
- Removed bandit (pbr dependency issue) - can be added later
- All pre-commit checks now passing
2026-02-02 15:46:05 +01:00

48 lines
841 B
Markdown
Executable File

# 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
```