Code Monkey home page Code Monkey logo

service-registry's Introduction

Service Registry for integration platforms

Build Status

Features

  • REST-API to lookup services
  • Activate/Deactivate endpoint with optional message and HTTP-Status 401
  • Basic-Authentification
  • Mule Connector for Service Lookup
  • Oracle-DB as backend

Build

cd service-registry
mvn clean install

Configure a DataSource in src/test/resources/environment.properties

#MySQL 
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.intialize=true

There is another environment.properties in src/main/config that will be used as a template during RPM installation.

Run locally

Start JVM

java -jar target/*.jar --spring.profiles.active=security --server.port=8080

or

mvn spring-boot:run

Open GUI in the browser

http://localhost:8080/

Access API

curl http://localhost:8080/api/services/service1/versions/1.0.0 -u user:password

System installation

Create RPM with Maven

mvn rpm:rpm

Environment configuration file

/etc/service-registry/environment.properties

System configuration file

/etc/sysconfig/service-registry

Management

Health Endpoint

http://localhost:8080/health

Environment information

http://localhost:8080/env

Logging

Can be customized in "/etc/sysconfig/service-registry"

--logging.file=/var/log/service-registry.log

Host Address

Can be customized in "/etc/sysconfig/service-registry"

--server.address=localhost

Port

Can be customized in "/etc/sysconfig/service-registry"

--server.port=8080

service-registry's People

Contributors

denschu avatar

Watchers

 avatar  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.