#Action Monitor
The application has 3 component:
- The bussiness application
betting-app
- The monitor application
monitor-webapp
- ActiveMQ message queue
message-queue
##betting-app
###How to start
mvn spring-boot:run
in the betting-app
directory
or
after mvn package
run with java -jar betting-app-1.0-SNAPSHOT.jar
###API
POST /api/bet HTTP/1.1
Host: localhost:8080
Content-Type: application/x-www-form-urlencoded
amount=200
{"id":1,"amount":200}
PUT /api/bet/1 HTTP/1.1
Host: localhost:8080
Content-Type: application/x-www-form-urlencoded
amount=300
{"id":1,"amount":300}
GET http://localhost:8080 /api/app-info/ping
OK
GET http://localhost:8080 /api/app-info/version
1.0-SNAPSHOT
##monitor-webapp
###How to start
mvn spring-boot:run
in the monitor-webapp
directory
or
after mvn package
run with java -jar monitoring-webapp-1.0-SNAPSHOT.jar
###Usage
Open the http://localhost:8090/ url.
##message-queue
This is just to make it easy to start a test queue
###How to start
mvn activemq:run