CIA/e-voting-system/rebuild.sh
E-Voting Developer 8baabf528c feat: Implement Historique and Upcoming Votes pages with styling and data fetching
- Added HistoriquePage component to display user's voting history with detailed statistics and vote cards.
- Created UpcomingVotesPage component to show upcoming elections with a similar layout.
- Developed CSS styles for both pages to enhance visual appeal and responsiveness.
- Integrated API calls to fetch user's votes and upcoming elections.
- Added a rebuild script for Docker environment setup and data restoration.
- Created a Python script to populate the database with sample data for testing.
2025-11-06 05:12:03 +01:00

36 lines
851 B
Bash
Executable File

#!/bin/bash
# Script complet de rebuild
# Usage: ./rebuild.sh
set -e # Exit on error
echo "🧹 Nettoyage complet..."
docker-compose down 2>/dev/null || true
echo "🗑️ Suppression des images..."
docker image rm evoting-frontend evoting-backend 2>/dev/null || true
echo "🧼 Prune Docker..."
docker system prune -f
echo "📦 Suppression du build frontend..."
rm -rf frontend/build/
rm -rf frontend/node_modules/.cache/
echo "🔨 Rebuild complet avec docker-compose..."
docker-compose up -d --build
echo ""
echo "✅ Rebuild complet terminé!"
echo ""
echo "📊 État des services:"
docker-compose ps
echo ""
echo "🌐 URLs:"
echo " Frontend: http://localhost:3000"
echo " Backend: http://localhost:8000"
echo ""
echo "📝 Pour voir les logs:"
echo " docker-compose logs -f frontend"
echo " docker-compose logs -f backend"