diff --git a/README.md b/README.md index 32ebc94afdd31d8072f7b037b93ea6f8d9fb79d9..2b57b4ee6eca7a61331f93d71aa7458c0236a752 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,28 @@ This repository is a centralized version of architecture for IPos software (Indo ## How to run? -- [hivemq](http://www.hivemq.com/demos/websocket-client/) - - publish: "test51/publish/positions" - - example: `{"x": 3.0,"y": 2.0,"z": 3.0,"accuracy": 0.9}` - - subscribe: "test51/subscribe/positions" + +1. Start [hivemq](http://www.hivemq.com/demos/websocket-client/). It's a client for an external test MQTT-broker. + 1. Establish a connection with the standard parameters (WS coonection). + 2. Add new subscriptions with `Add New Topic Subscription` button + - `test51/subscribe/positions`: responses + - `test51/publish/positions`: requests +2. Start Spring boot project from this repository + - from console (`./gradlew bootRun`) or your favorite IDE +3. Return to a web-browser tab with an external MQTT client + 1. Send valid json representation of position in `test51/publish/positions` topic + - Message example: `{"x": 3.0,"y": 2.0,"z": 3.0,"accuracy": 0.9}` + 2. If successful, the same message should come from `test51/subscribe/positions` topic. + + + + + +### Extra - Internal database: [localhost:8077/h2-console](http://localhost:8077/h2-console) - server 8077 port from `application.yml` - JDBC URL: see logs. Example: `jdbc:h2:mem:1a7bd898-e992-4a5c-9a3e-ed8d9eb2ab37` + - [ ] TODO: fix database schema ## Links diff --git a/demo.v1.jpg b/demo.v1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..537e669ef7ce5c8d943d074cd9be1f7d2c7b4d8d Binary files /dev/null and b/demo.v1.jpg differ