CIA/e-voting-system/Makefile
E-Voting Developer 5bebad45b8 Initial commit: Complete e-voting system with cryptography
- FastAPI backend with JWT authentication
- ElGamal, RSA-PSS, ZK-proofs crypto modules
- HTML5/JS frontend SPA
- MariaDB database with 5 tables
- Docker Compose with 3 services (frontend, backend, mariadb)
- Comprehensive tests for cryptography
- Typst technical report (30+ pages)
- Makefile with development commands
2025-11-03 16:13:08 +01:00

49 lines
1.2 KiB
Makefile

.PHONY: help install dev up down logs clean test lint format
help:
@echo "E-Voting System - Commandes disponibles:"
@echo ""
@echo " make install Installer les dépendances Python"
@echo " make dev Démarrer le dev local (sans Docker)"
@echo " make up Démarrer avec Docker Compose"
@echo " make down Arrêter les conteneurs Docker"
@echo " make logs Voir les logs des conteneurs"
@echo " make test Exécuter les tests"
@echo " make lint Vérifier la qualité du code"
@echo " make format Formater le code (black)"
@echo " make clean Nettoyer les fichiers temporaires"
install:
poetry install
dev:
poetry run uvicorn src.backend.main:app --reload --host 0.0.0.0 --port 8000
up:
docker-compose up -d
down:
docker-compose down
logs:
docker-compose logs -f
test:
poetry run pytest tests/ -v --tb=short
lint:
poetry run ruff check src/ tests/
format:
poetry run black src/ tests/
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache
rm -rf .coverage
rm -rf htmlcov/
rm -rf dist/
rm -rf build/
rm -rf *.egg-info/