E-Voting Developer 839ca5461c Fix: Login system and clean up duplicate src/ folder
- Fixed LoginPage.js to use correct API endpoint (localhost:8000)
- Fixed prop naming (onLoginSuccess → onLogin)
- Fixed data structure mapping (voter.email → email, etc)
- Removed duplicate src/ folder structure
- Updated DashboardPage.js with proper API endpoints
- Added lucide-react dependency
- Fixed docker-compose and Dockerfile.backend for proper execution
- Cleaned up console logs
- System fully working with Docker deployment
2025-11-05 23:25:43 +01:00

21 lines
421 B
Bash

#!/bin/bash
# Script de démarrage du frontend
echo "🚀 Démarrage du frontend E-Voting..."
echo ""
# Vérifier si node_modules existe
if [ ! -d "node_modules" ]; then
echo "📦 Installation des dépendances..."
npm install
echo ""
fi
# Démarrer l'application
echo "✨ Démarrage du serveur de développement..."
echo "📍 L'application sera disponible sur http://localhost:3000"
echo ""
npm start