Skip to content

ramamidi/retrieve-preference-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retrieve Marketing Preferences Microservice

This is the retrieve preference microservice that is responsible to retrieve Marketing preferences of customers. This microservice is written in Java/Spring Boot.

Steps to run without docker

Pre-requisites:

Steps to run locally:

  • Run gradle build
  • cd build/libs folder
  • Run java -jar retrieve-preference-service-1.0.0.jar

Run unit tests

gradle test

Steps to run using docker:

Docker Build

docker build -t retreivepreference:lts .

Docker Run

docker run -p 8081:8081 --init -e SPRING_PROFILES_ACTIVE='demo' --rm -d --name retrievepreference_service retreivepreference:lts

Run non detach

docker run -p 8081:8081 --init -e SPRING_PROFILES_ACTIVE='demo' --rm --name retrievepreference_service retreivepreference:lts

Check container logs

docker logs <image_name>
docker logs retrievepreference_service

Kill container

docker kill <container-id>
docker rm retrievepreference_service

How to test service

  • Install Postman or any rest client Install postman
  • Export this collection: Collection
  • eh voilà - The retrieve preference microservice is ready to use

About

A sample microservice that is containerized using docker that performs a simple GET call to retrieve data to DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors