GithubHelp home page GithubHelp logo

ukeiam / de.uke.iam.dsfa.control Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 288 KB

A Controller Module using a Jersey-Restful Service to Get/Send Information from/to dsfa databank.

License: Apache License 2.0

Java 99.95% Shell 0.05%

de.uke.iam.dsfa.control's Introduction

DSFA Controller

Installation

1. PostgreSQL Contrib Module

Before deploying this module, you need to enable postgres UUID support. As this is a contrib module, it may not be installed on the server by default.

The package to install is called:

  • in Ubuntu 18.04 LTS: postgresql-contrib
  • in CentOS7: postgresql10-contrib (for PostgreSQL 10, for other versions change the 10 in the name)

Install the package with either apt install postgresql-contrib or yum install postgresql10-contrib

2. Configuration file

Provide a dsfa.control.config.xml configuration file with the necessary details as shown in /resources/dsfa.control.config.xml.example. Put the file either in resources or in one of the directories explained below.

On Linux and Mac:

Store the file in the directory /etc/dsfa/ or in /usr/local/share/dsfa/

On Windows:
As service

Provide the path of the directory in which the config file is located with the Windows registration entry HKLM\SOFTWARE\DSFA\ConfDir or HKLM\SOFTWARE\DSFA\ConfDistDir

As normal user

If you're only deploying as a Windows user, you can also create the subdirectories C:\Users\USERNAME\.config\dsfa\ Replace USERNAME with the username and use the appropriate drive if you installed on other than C:

3. Deploy DSFA-Control

Now you can deploy the controller in your tomcat-webapp directory.

To build for development

Database Configuration

Enable a maven profile overwriting the database-connection values

  <properties>
    <dsfa.database.url>jdbc:postgresql://servername:serverhost/databasename</dsfa.database.url>
	<dsfa.database.schema>public</dsfa.database.schema>
	<dsfa.database.user>username</dsfa.database.user>
	<dsfa.database.password>password</dsfa.database.password>
  </properties>

Then generate the database with FlyWay: mvn flyway:migrate

DSFA Control Configuration

Build the necessary java model classes with: mvn jaxb2:generate

Now create a dsfa.control.config.xml file from the provided example file and update the content. This file can be stored in different locations. Check documentation of Samply-Common-Config.

JOOQ Model Classes

Finally, build the jooq model with: ``` mvn jooq-codegen:generate ``

de.uke.iam.dsfa.control's People

Contributors

ofulla avatar johnollhorn avatar kristina-hess avatar jollhorn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.