ERP example application
This example demonstrates how to develop microservices with Spring Boot, JPA, Apache Kafka, ElasticSearch and the Eventuate Tram framework.
Building and running
Note: you do not need to install Gradle since it will be downloaded automatically. You just need to have Java 8 installed.
First, build the application
./gradlew-assemble-all.sh
Next, set 'DOCKER_HOST_IP' an host IP address
export DOCKER_HOST_IP=...
Last, launch the services using Docker Compose:
docker-compose build
docker-compose up -d
Note:
- You need to set
DOCKER_HOST_IP
before running Docker Compose. This must be an IP address or resolvable hostname. It cannot belocalhost
. See this guide to settingDOCKER_HOST_IP
for more information.
Using the application
Once the application has started, you can use the application via Brower.
http://${DOCKER_HOST_IP}:8080/login