venkatesan-chandran / MicroSvcApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Based Micro Services ECommerce Application

This application can be executed in following modes

  1. Run the application without APM Agent attached to it
  2. Run the application with APM Agent using volume mount approach
  3. Run the application using embedded APM Agent

Pre-requisites

  • Make sure you have JAVA 8 or JRE 8 installed.
  • Make sure you have maven installed.
  • Make sure you have git installed.
  • Make sure you have docker-compose installed.

Compile and Build Application

Step 1 : To clone this application
git clone https://github.com/javaapm/MicroSvcApp.git
Step 2 : Navigate to application home directory
cd MicroSvcApp
Step 3 : To build the application
mvn clean package

Run the application without APM Agent

Step 1 : Navigate to application home directory (MicroSvcApp)

Step 2 : To build docker images and run all the application containers

docker-compose up -d --build

Step 3 : To ensure all containers started and running docker ps -a

Step 4 : Open the browser and access the application using "http://DOCKER_HOST_IP:8070/webstore"

Run the application with APM Agent using volume mount (Only Linux)

Step 1 : Navigate to directory "MicroSvcApp/btm_volume_mount/"

Step 2 : To build docker images and run all the application containers

docker-compose up -d --build

Step 3 : To ensure all containers started and running docker ps -a

Step 4 : Open the browser and access the application using "http://DOCKER_HOST_IP:8070/webstore"

Run the application using embedded APM Agent (APM Agent embedded inside container image)

Step 1 : Navigate to directory "MicroSvcApp/btm_embedded/"

Step 2 : To build docker images and run all the application containers

docker-compose up -d --build

Step 3 : To ensure all containers started and running docker ps -a

Step 4 : Open the browser and access the application using "http://DOCKER_HOST_IP:8070/webstore"

To stop the application

Step 1 : Navigate to directory where the docker-compose.yml is present and run the below command.

docker-compose down

THIS IS FOR THE PURPOSES OF TRAINING OR INTERNAL USE ONLY, DO NOT SHARE TO CUSTOMER/PROSPECT/OTHERS

About


Languages

Language:Java 95.9%Language:JavaScript 2.5%Language:CSS 1.3%Language:Dockerfile 0.2%Language:Shell 0.1%Language:Batchfile 0.0%