A voting site to decide among the different lists running in the ENSEIRB-Matmeca campaigns.
Vote.eirb.fr is a web application designed to facilitate the voting process for various lists running in ENSEIRB-Matmeca campaigns. The platform allows users to cast their votes and administrators to manage campaigns and view results.
- Create a
.env
file
Copy the provided.env.example
and configure it according to your environment.
WARNING: Do not use the default values in production.
Start the database container using Docker Compose:
docker-compose -f ./docker-compose.db.yaml up -d
Install dependencies and start the backend in development mode:
cd backend
yarn
yarn dev
Install dependencies and start the frontend in development mode:
cd frontend
yarn
yarn start
Do not forget to start the database container before deploying the backend and frontend.
Build and run the backend using Docker Compose for production:
docker-compose -f ./docker-compose.api.yaml up -d
Build and run the frontend using Docker Compose for production:
docker-compose -f ./docker-compose.www.yaml up -d
To seed the initial admin user, run:
docker compose -f docker-compose.cli.yaml up --build