Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.
/ oth-sw Public archive

OTH Regensburg - Softwareentwicklung - Prof. Jobst - IN - WiSe 20/21

License

Notifications You must be signed in to change notification settings

bbenno/oth-sw

Repository files navigation

Chat Service

Java CI with Maven

GitHub repo size Lines of code GitHub top language Maintenance

Warning
Development of this application is supended.

Setup

Important
Requirements
  1. Java 14 or later (JDK for Development, JRE for Deployment)

  2. Maven 3.2+

  3. MySQL 8.0
    Note: version in application-production.properties is v5.1 due to environment of intended deployment.
    This version has known security vulnerabilities → edit properties file and use later version of MySQL!

Development

  1. Clone repository

    git clone git@github.com:bbenno/oth-sw
  2. cd oth-sw
  3. Install local JAR

    mvn install:install-file -Dfile=lib/com.othr.swvigopay-0.0.1SNAPSHOT.jar -DgroupId=com.othr -DartifactId=swvigopay -Dversion=0.0.1SNAPSHOT -Dpackaging=jar -DgeneratePom=true
  4. Set environment variables[1]

  5. (Optionally) Edit application.properties or application-development.properties

  6. Build JAR

    ./mvnw package
  7. Run application

    ./mvnw spring-boot:run

Deployment

  1. Download latest chat-<VERSION>.jar

  2. Set environment variables[1]

  3. Start webserver[2]

    java -jar chat-<VERSION>.jar >> console.log 2>> error.log &
  4. Ensure that there are at least two bots with the usernames payment_service and bank_service present in the database.
    If not run import.sql within the context of the database.

License

Copyright 2021 Benno Bielmeier

Code licensed under the EUPL v1.2 License: https://opensource.org/licenses/EUPL-1.2


1. See sample .pam_environment
2. See sample run script