Skip to content

it-at-m/ehrenamt-justiz

Repository files navigation

Ehrenamtjustiz

New issue Made with love by it@M GitHub license

General

It was decided to replace the legacy application “Schöffenverwaltung”, which was used by the District Administration Department until 2024, with a MAKE application based on the it@M reference architecture. The requirement that the specialist procedure can supports the application for the office of lay judge and honorary judges at the Administrative Court without a change request will be taken into account. This new application is referred to as “Ehrenamtjustiz”. The application Ehrenamtjustiz supports the clerk in the District Administration Department in recording and managing applicants, resolving conflicts in the residents' registration data and drawing up the list of proposals for lay judge and honorary judges at the Administrative Court . Citizens can also apply for aldermen online.

Ehrenamtsjustiz based on the RefArch (reference architecture) of it@M.

To learn more about the architecture itself, checkout its documentation or code.

The templates are based on Spring and Vue.js.

System overview

System overview

Built With

The project is built with technologies we use in our projects (reference architecture):

Get Ready to use Ehrenamtjustiz local in Podman

Clone Repository from github

mkdir ~/develop
cd ~/develop   
git clone https://github.com/it-at-m/ehrenamt-justiz.git
cd ehrenamt-justiz

Manual adaption for starting the EAI

Manually adjust the source entrypoint.sh (~/develop\ehrenamt-justiz\ehrenamt-justiz-eai\entrypoint.sh)

Details can be found in the documentation here:

ehrenamt-justiz/ehrenamt-justiz-eai/entrypoint.sh

Manually adjust the user and password in docker-compose.yml (~\develop\ehrenamt-justiz\stack\docker-compose.yml) for calling the EAI:

  eai:
   ...
    environment:
      - PRODUCER_USER=
      - PRODUCER_PASSWORD=

Manual work for starting the EJ change service

The following must be done to use the EJ change service (Kafka)

  • Copy kafka-auth-keystore.jks and truststore.jks (Can be found in Keystore for Ehrenamt-Justiz) to folder ~/develop/ehrenamt-justiz/ehrenamt-justiz-aenderungsservice/src/main/resources
  • Manually add the user and password in ~/develop/ehrenamt-justiz/stack/docker-compose.yml (User and password can be found in Keystore for Ehrenamt-Justiz)
    services:
      ...
      aenderungsservice:
        ...
        environment:
        ...
        - KEY_STORE_PASSWORD=
        - TRUST_STORE_PASSWORD=
    
  • Manually set the GROUP_ID (The Group ID identifies a group of consumer instances that jointly consume messages from one or more Kafka topics) in ~/develop/ehrenamt-justiz/stack/docker-compose.yml for kafka.
    services:
      ...
      aenderungsservice:
        ...
        environment:
        ...
          - GROUP_ID=lhm-ewo-eai-aenderungen-ehrenamt-justiz...
    

Starting Ehrenamtjustiz in Podman

cd ~/develop/ehrenamt-justiz/stack  
podman compose --profile=backend --profile=frontend --profile=eai --profile=online --profile=aenderungsservice up -d

These containers are started:

Container Podman Desktop

Start EJ application in browser

url: http://localhost:8083

Container Podman Desktop

Users

These users are only for testing purpose in podman:

user Description role password
nosach normal user with basic rights clientrole_sachbearbeiter nosach
sosach users with extended rights clientrole_sondersachbearbeiter sosach
soadmin administrator rights clientrole_administrator soadmin

Active Configuration

After starting the application for the first time, an active configuration must first be created. All data is saved under this configuration.

Create configuration

Container Podman Desktop

Activate configuration

Container Podman Desktop

Start online application in browser

url: http://localhost:8083/public/online/

Container Podman Desktop

Stop Container for Ehrenamtjustiz in Podman

podman compose --profile=backend --profile=frontend --profile=eai --profile=online --profile=aenderungsservice stop

Build releases

Build release of api

  1. Open action for api release: API release
  2. Click on "view runs"
  3. Click on "run workflow"
  4. Select branch, module to release (ehrenamtjustiz-api), release version (e.g. 1.0.0) and next version to use after release (e.g. 1.0.1-SNAPSHOT)
  5. Click on "Run workflow"

Build maven release

  1. Check running action
  2. Releases saved in the central Maven repository. Wait, wait and wait until it is there.
  3. Update api-versions in pom.xml in backend and aenderungsservice and eai and build releases

Build release of backend, eai and aenderungsservice

  1. Open action for maven release: Maven release workflow
  2. Click on "view runs"
  3. Click on "run workflow"
  4. Select branch, version to use when preparing a release (e.g. 0.0.4) and version to use for new local working copy (e.g. 0.0.5-SNAPSHOT) and Service-Name (ehrenamt-justiz-backend, ehrenamt-justiz-eai or ehrenamt-justiz-aenderungsservice)
  5. Click on "Run workflow"

Build maven release

  1. Check running action
  2. Release can be found here: Releases
  3. Update versions in docker-compose.yml for podman

Build release of frontend und online

  1. Open action for npm release: npm release workflow
  2. Click on "view runs"
  3. Click on "run workflow"
  4. Select branch, version increment type (patch, minor or major) and node service to release
  5. Click on "Run workflow"

Build npm release

  1. Check running action
  2. Release can be found here: Releases
  3. Update versions in docker-compose.yml for podman

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please open an issue and fill out the appropriate issue form with as much information as possible. If you want to work on a solution, fork the repo and create a pull request. Don't forget to give the project a star! Thanks again!

More about this in the CODE_OF_CONDUCT file.

License

Distributed under the MIT License. See LICENSE file for more information.

Contact

it@M - opensource@muenchen.de

About

Supports the application for the office of lay judge and honorary judges at the Administrative Court

Resources

License

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Generated from it-at-m/refarch-templates