Skip to content
Snippets Groups Projects
Commit 9263dbf9 authored by Oleksandr Husak's avatar Oleksandr Husak
Browse files

upd readme

parent ec11e612
No related branches found
No related tags found
No related merge requests found
...@@ -9,13 +9,28 @@ This repository is a centralized version of architecture for IPos software (Indo ...@@ -9,13 +9,28 @@ This repository is a centralized version of architecture for IPos software (Indo
## How to run? ## How to run?
- [hivemq](http://www.hivemq.com/demos/websocket-client/)
- publish: "test51/publish/positions" 1. Start [hivemq](http://www.hivemq.com/demos/websocket-client/). It's a client for an external test MQTT-broker.
- example: `{"x": 3.0,"y": 2.0,"z": 3.0,"accuracy": 0.9}` 1. Establish a connection with the standard parameters (WS coonection).
- subscribe: "test51/subscribe/positions" 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.
![](demo.v1.jpg)
### Extra
- Internal database: [localhost:8077/h2-console](http://localhost:8077/h2-console) - Internal database: [localhost:8077/h2-console](http://localhost:8077/h2-console)
- server 8077 port from `application.yml` - server 8077 port from `application.yml`
- JDBC URL: see logs. Example: `jdbc:h2:mem:1a7bd898-e992-4a5c-9a3e-ed8d9eb2ab37` - JDBC URL: see logs. Example: `jdbc:h2:mem:1a7bd898-e992-4a5c-9a3e-ed8d9eb2ab37`
- [ ] TODO: fix database schema
## Links ## Links
......
demo.v1.jpg

178 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment