Display live stats of registered candidates for FuM.
- Update
spreadsheetId
inbackend/getData.js
with the correct spreadsheet id. - Push to github
- Create a
credentials.json
- Update
backend/secret/credentials.json
with the correct data on the server.
Easiest with docker-compose:
version: "3"
services:
fum-election-canditature:
image: ghcr.io/electioncommittee-chs/canditaturetracker:main
container_name: fum-election-canditature
restart: unless-stopped
volumes:
- canditature-secrets:/usr/src/app/backend/secret
volumes:
canditature-secrets:
This could be made smoother but this works for now:
# in backend/
npm install
npm start
# another terminal in frontend/
npm install
npm run dev
# in frontend/
npm install
npm run build
# another terminal in backend/
npm install
npm run dev
docker-compose up --build --force-recreate