This is a implementation of a voting system for the Computer Science Chapter, with a backend written in golang and a frontend written in Typescript React.
The system uses the following permissions in pls:
permission | access |
---|---|
admin-read |
Allows viewing data associated with elections and voters |
admin-write |
Allows modifying and creating elections and voters |
name | default | description |
---|---|---|
POST |
3000 |
specifies the port that the system will run on |
LOGIN_URL |
https://login.datasektionen.se |
url for the login system and API |
LOGIN_KEY |
API-key for the login system | |
PLS_URL |
https://pls.datasektionen.se |
url for the permissions system pls |
DATABASE_URL |
postgres-url for connecting to the database instance |
- Create a postgres database and make sure it is running
- Set up environment variables
- Run
make init
in root - Run
make run-server
in root - In a separate terminal, run
make run-client
in root
- Create a postgres database and make sure it is running
- Setup environment variables
- Run
make prod
in root
The system also has a dockerfile
setup for deployment.