- 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.
22 lines
388 B
Docker
22 lines
388 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copier package.json
|
|
COPY frontend/package*.json ./
|
|
|
|
# Installer dépendances
|
|
RUN npm install --legacy-peer-deps
|
|
|
|
# Copier code source
|
|
COPY frontend/ .
|
|
|
|
# Build argument for API URL
|
|
ARG REACT_APP_API_URL=http://backend:8000
|
|
ENV REACT_APP_API_URL=${REACT_APP_API_URL}
|
|
|
|
EXPOSE 3000
|
|
|
|
# Mode développement avec hot reload (npm start)
|
|
CMD ["npm", "start"]
|