Skip to content

wenqiglantz/order-service

Repository files navigation

Order Service

customer-order.jpg

Order Service, consumer of Customer Service where customer events are published:

    1. CustomerWasCreated
    1. CustomerWasUpdated
    1. CustomerWasDeleted
  • A. Prerequisites

  • B. Getting Started & Run the Application

      1. Clone the git repo in to your local directory from github repository
      1. Open the command prompt and navigate to the main project directory.
      1. Copy mssql.jks file located under rest-controller submodule to under "tmp" directory on your local env. Empty file merely for local testing purpose.
  • ** Run Application on Local Docker Containers**

      1. Build the application:
      • mvn clean install
      1. Run the application with Dapr as sidecar WITH docker container:
      • docker-compose up --build
      1. Tear down the app after running the app (warning: this will delete the contents of your app's database):
      • docker-compose down
  • C. Project Code Modules

    • config - Spring Configuration classes for all of the modules.
    • dapr-components - dapr components files for pubsub.
    • data - Contains domain data shared with other applications such as rest-api, events etc.
    • persistence - Responsible for hosting the Entities and Repositories for the database.
    • rest-controller - REST Endpoints for the application.
    • service - Contains business logic for the application.
  • D. Application Launch

PubSub

For testing purpose, we are using EMQ X MQTT public broker https://www.emqx.io/mqtt/public-mqtt5-broker.

About

Spring Boot microservice to demo integration with Dapr for event-driven, Pact for consumer-driven contract testing, Cucumber BDD, Liquibase, etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published