Wahl-o-Mat für Personalwahlen https://kandimat.netzbegruenung.verdigado.net/
Go to file
Christoph Lienhard 47988c1e43
#6 Start from scratch with redaktionsapp
2020-08-23 13:13:09 +02:00
backend Add more test data 2020-08-22 21:39:19 +02:00
candymat-user-app@f239bec4ff Point submodule to full working user-app version 2020-08-22 21:23:51 +02:00
redaktions-app #6 Start from scratch with redaktionsapp 2020-08-23 13:13:09 +02:00
.editorconfig Get local development setup working 2019-09-17 23:48:44 +02:00
.env Move password related env variables to docker compose .env file 2020-05-31 14:45:20 +02:00
.gitignore #6 Start from scratch with redaktionsapp 2020-08-23 13:13:09 +02:00
.gitmodules set submodule tracking branch to develop-candymat 2020-05-30 14:46:47 +02:00
README.md Point submodule to full working user-app version 2020-08-22 21:23:51 +02:00
docker-compose.dev.yml Added cors to postgraphile 2020-06-14 03:04:59 +02:00

README.md

Candymat - Wahl-o-Mat fuer Personalwahlen

Introduction

The candymat is a Wahl-o-Mat for elections of candidates.

Services

The project consists of three services:

  • GraphQL backend (+ postgres)
  • Redaktions-App
  • User-App

Redaktions-App

The Redaktions-App is used for editors and candidates to provide questions and answers.

The app is written with react and appollo-react to access the backend.

See also: Service Readme

User-App

The User-App is based on the EuroMat (Source: https://github.com/morkro/euromat) and is used to find the perfect candidate for everyone who is allowed to vote.

It is written in vue.js.

See also: Service Readme

Postgraphile (Backend)

A package which creates an GraphQL api based on an underlying postgres schema.

For more on this (e.g. how to use the graphQl api by yourself) see backend readme

Development Setup

Check-out repository

  • Install git
  • git clone https://git.verdigado.com/Netzbegruenung/candymat.git
  • To get the (external) user-app source:
    git submodule update --init
    

Setup Docker

Install docker-compose on your system.

Start whole setup

For dev setup:

docker-compose up

Note: The database will use a volume to persist changes in-between runs. To start with a clean database, either delete the volume from the postgres configuration in the compose file or run

docker container rm candymat_postgres_1
docker volume rm candymat_db-data

before starting docker-compose.

Manual testing

Either go to the User-App and mess around with the existing test data or use GraphiQL directly (links are above).