[go: nahoru, domu]

Skip to content

MicroService for receiving deliveries - a delivery tells us what product we will receive, how many of them, and who it comes from. Deliveries are how we get the products into our warehouses.

Notifications You must be signed in to change notification settings

tanvir86/delivery-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service for receiving deliveries

BUILD && RUN

Using Commandline:

  1. Dependency:

    • java 11
    • Maven
  2. Build and Run

    mvn clean package
    java -jar target/delivery-0.0.1-SNAPSHOT.jar
  3. Access Endpoint and Documentation

Alternative: Using Docker

  1. run test cases and build jar file
    1. run below command in project root directory
    docker run -it --rm --name assesment-delivery-service-build -v "$(pwd)":/root -w /root adoptopenjdk/maven-openjdk11:latest mvn clean package
    1. this will build jar file delivery-0.0.1-SNAPSHOT.jar in target directory
  2. Build Docker image using provided Dockerfile
    1. run below command in project root directory
    sudo docker build -t assesment-delivery:latest .
  3. Start the application
    1. Run below command in project root directory
    sudo docker run -d -p 8080:8080 -t assesment-delivery:latest
    1. This start the application in 8080 port
  4. Check http://localhost:8080/playground on browser for endpoint documentation and api testing.

Further Improvement:

  • Enable Spring boot actuator Prommetheus endpoint for Monitoring
  • Add Apollo Federation server and configure this service to extend schema and log tracing

About

MicroService for receiving deliveries - a delivery tells us what product we will receive, how many of them, and who it comes from. Deliveries are how we get the products into our warehouses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages