Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

bbenno/oth-sw

Repository files navigation

Chat Service

Java CI with Maven

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 [email protected]: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 &

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