Narayana LRA example application
- run minishift instance according to the setup file
./run.sh
this script assumes the configured and run minishift instance from the previous step
- build service-model
cd {project.dir}/service-model
mvn clean install
- create and build api-gateway app
cd {project.dir}/api-gateway
mvn clean package fabric8:deploy
- create and build order-service app
cd {project.dir}/order-service
mvn clean package fabric8:deploy
- create and build shipment-service app
cd {project.dir}/shipment-service
mvn clean package fabric8:deploy
- create and build invoice-service app
cd {project.dir}/invoice-service
mvn clean package fabric8:deploy
- create and build lra-coordinator app
cd {project.dir}/lra-coordinator
mvn clean package fabric8:deploy
-
mvn clean install -Dfabric8.skip
-
docker-compose up -d --build
-
shutdown -
docker-compose down --remove-orphans
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"testProduct\"}" "http://order-service-myproject.`minishift ip`.nip.io/api/order"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"failInvoice\"}" "http://order-service-myproject.`minishift ip`.nip.io/api/order"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"failShipment\"}" "http://order-service-myproject.`minishift ip`.nip.io/api/order"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"testProduct\"}" "http://localhost:8080/api/order"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"failInvoice\"}" "http://localhost:8080/api/order"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"failShipment\"}" "http://localhost:8080/api/order"