Skip to content

EssDeeBee/microservice-package-hkrn

Repository files navigation

The package includes three services:

discovery-service - service which is based on the eureka the main purpose is to register an application.
business-service - The service provides the only one endpoint that returns the application version.
gateway-service - The gateway to business_api with the only one endpoint (/business)

Building

Production

In order to build the services the command should be used:
mvn clean install && docker-compose build
The default environment will be used which is for production and stored in .env file.

Test

For test server this command should be used mvn clean install && docker-compose --env-file .env-dev build
The command builds the containers using testing environment which is stored in .env-dev file.

Starting the app

To start the app use this command docker-compose up -d The command can be launched with additional argument with environment path: docker-compose --file-env .env-dev up -d

Environment

All the necessary environment stored in the "./.env" file.

Using the app

To use the app send GET request on gateway-service service.
For example if the service deployed on localhost the curl request will be:
GET /business HTTP/1.1 Host: localhost:8082

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published