A web application that checks a VotingWorks LiveCheck-QR code, its signature against known machine public keys.
- This application uses a Python Flask backend and Vite to build a JS frontend, built and served from
dist/ - Server code lives in
server/and client code roots inapp.js - To test the server, add a main entrypoint to
app.pyand runpython3 -m server.apporpython3 app.py - To test the end to end flow locally/with a phone camera:
- Add a main entrypoint to
app.pywithapp.run(port=5000) - Add a
vite.config.jsto the root directory that sets a proxy for the server calls tolocalhost:5000 - Run the client with
npm run devand the server withpython3 -m server.app - In a separate terminal, expose the client to the internet with
ngrok http 3000 - On your phone, access the client using the url provided by ngrok
- Add a main entrypoint to
- Developing on Linux is recommended to match production
- To test the server, run
pytestfrom the root directory orserver/