Code Monkey home page Code Monkey logo

axon-mall-orchestration-saga's Introduction

How to run

  • Run axon server and mysql firstly
cd infra
docker-compose up

Build common API & Run each service

  • Build common API
cd common-api
mvn clean install
  • Run each service
# new terminal
cd order
mvn clean spring-boot:run

# new terminal
cd product
mvn clean spring-boot:run

# new terminal
cd delivery
mvn clean spring-boot:run

  • Run API gateway
cd gateway
mvn clean spring-boot:run
  • Run frontend server
cd frontend
npm i
npm run serve

Test By UI

Head to http://localhost:8088 with a web browser

Test Rest APIs

  • order
 http :8088/orders orderId="orderId" productName="productName" productId="productId" status="status" qty="qty" userId="userId" 
  • product
 http :8088/products productId="productId" productName="productName" stock="stock" 
  • delivery
 http :8088/deliveries deliveryId="deliveryId" userId="userId" address="address" orderId="orderId" productId="productId" qty="qty" status="status" 

Test RSocket APIs

  • Download RSocket client
wget -O rsc.jar https://github.com/making/rsc/releases/download/0.4.2/rsc-0.4.2.jar
  • Subscribe the stream
java -jar rsc.jar --stream  --route orders.all ws://localhost:8088/rsocket/orders

java -jar rsc.jar --stream  --route products.all ws://localhost:8088/rsocket/products

java -jar rsc.jar --stream  --route deliveries.all ws://localhost:8088/rsocket/deliveries

axon-mall-orchestration-saga's People

Watchers

박용주 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.