Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datasektionen/durn-the-third
Re-reimplementation of our ballot system durn
https://github.com/datasektionen/durn-the-third
Last synced: about 2 months ago
JSON representation
Re-reimplementation of our ballot system durn
- Host: GitHub
- URL: https://github.com/datasektionen/durn-the-third
- Owner: datasektionen
- License: mit
- Created: 2022-10-13T13:15:35.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-18T20:31:16.000Z (about 2 months ago)
- Last Synced: 2024-11-18T21:38:49.286Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 649 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# dUrn - the voting system
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.
# pls Permissions
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 |# Development
## Environment variables
| 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 |## How to run
### development
1. Create a postgres database and make sure it is running
2. Set up environment variables
3. Run `make init` in root
4. Run `make run-server` in root
5. In a separate terminal, run `make run-client` in root### production
1. Create a postgres database and make sure it is running
2. Setup environment variables
3. Run `make prod` in rootThe system also has a `dockerfile` setup for deployment.