Git Product home page Git Product logo

cda-backend's Introduction

Backend component of CDA Demo App

REST API Backend of CDA Demo App

Download Artifact

You can find the binary artifact on the releases page.

Current Artifact Download

Configuration needed

Provide an application.properties file with the following configuration values:

spring.datasource.url=jdbc:postgresql://<DATABASE_IP>:<DATABASE_PORT>/<DATABASE_NAME>
spring.datasource.username=<USER_NAME>
spring.datasource.password=<USER_PASSWORD>

Start as UNIX service

The provided jarFile is a executable JAR File containing a service wrapper script.

You can directely use it to run as a service:

init.d:

Just symlink to the JAR-File:

sudo ln -s /opt/cda/cdapp-api.jar /etc/init.d/cdapp
service cdapp start

Systemd:

Create a system service file under /etc/systemd/system as follows:

[Unit]
Description=cdapp
After=syslog.target

[Service]
User=cda
ExecStart=/opt/cda/cdapp-api.jar
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target

This assumes you have installed the jar in /opt/cda with owner set to user cda!

Enable the service

systemctl enable cdapp.service

Securing:

Make sure you set minimal rights and make the file immutable!

chown cda:cda cdapp-api.jar
chmod 500 cdapp-api.jar
sudo chattr +i cdapp-api.jar

Database

A PostgreSQL Database is needed.

Execute all SQL Files provided in the sql folder on the database used in the application.properties settings file above!

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.