[go: nahoru, domu]

Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.32 KB

README.md

File metadata and controls

40 lines (35 loc) · 1.32 KB

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