Skip to content

Little bit extended and modified version of the Statistics service of the Udemy course called Spring Boot Microservices with JPA

Notifications You must be signed in to change notification settings

gregito/StatisticsMicroserviceUdemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites:

For building and packaging

Maven

For containerized run (beside Maven):

Docker

To run in docker container run the following commands from the project's root folder:

Build the image:

docker build -t statistics-service .

Run the image with all the required environment variable and necessary exposed ports:

(You should set the values replacing the < values > parts)

docker run -d \
-e 'MYSQL_CONTAINER_IP=<your-mysq-server-ip>' \
-e 'MYSQL_DATABASE_USERNAME=<your-mysql-username>' \
-e 'MYSQL_DATABASE_PASSWORD=<your-mysql-password>' \
-e 'TODO_SERVICE_IP=<to-do-service-container-ip>' \
-e 'TODO_SERVICE_PORT=8383' \
-p 8384:8384 \
statistics-service

You can find the related (and required) to-do-service here.

The required mysql database table should be: latest_statistics

To prepare some example data you can insert some with the following SQL

About

Little bit extended and modified version of the Statistics service of the Udemy course called Spring Boot Microservices with JPA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages