Proof of concept of how online voting could happen secure.
npm install
npm run dev*if needed:
npm install @emotion/styled @emotion/reactBest to make a venv
pip install -r backend\requirements.txt
To run back:
python -m backend
make a .env file in root of project with following:
POSTGRES_DB='name_of_db'
POSTGRES_USER='postgres'
POSTGRES_PASSWORD='your_pass'
POSTGRES_HOST='localhost' #addres on which you run psql
Make sure that there is correct back URL in Login.tsx.
- Right now after successful login it falls back to url/? instead of staying at url/vote
- Shows errors in VoterView but it still works