https://github.com/rongfengliang/nakadi-docker-compose-ui
nakadi-docker-compose-ui
https://github.com/rongfengliang/nakadi-docker-compose-ui
docker-compose nakadi
Last synced: over 1 year ago
JSON representation
nakadi-docker-compose-ui
- Host: GitHub
- URL: https://github.com/rongfengliang/nakadi-docker-compose-ui
- Owner: rongfengliang
- Created: 2018-12-16T11:45:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T11:45:50.000Z (over 7 years ago)
- Last Synced: 2025-02-23T13:59:06.326Z (over 1 year ago)
- Topics: docker-compose, nakadi
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nakadi && ui docker-compose running
## how to running
* start
```code
docker-compose up -d
```
* ui
open http://localhost:3000
* api
open http://localhost:8080
* create event type
```code
curl -v -XPOST http://localhost:8080/event-types -H "Content-type: application/json" -d '{
"name": "order.ORDER_RECEIVED",
"owning_application": "order-service",
"category": "undefined",
"partition_strategy": "random",
"schema": {
"type": "json_schema",
"schema": "{ \"properties\": { \"order_number\": { \"type\": \"string\" } } }"
}
}'
```
* send event message
> with low level api best practice is use subscription
```code
curl -v -XPOST http://localhost:8080/event-types/order.ORDER_RECEIVED/events -H "Content-type: application/json" -d '[
{
"order_number": "24873243241",
"metadata": {
"eid": "d765de34-09c0-4bbb-8b1e-7160a33a0791",
"occurred_at": "2016-03-15T23:47:15+01:00"
}
}, {
"order_number": "24873243242",
"metadata": {
"eid": "a7671c51-49d1-48e6-bb03-b50dcf14f3d3",
"occurred_at": "2016-03-15T23:47:16+01:00"
}
}]'
```
* recevied message
```code
curl -v http://localhost:8080/event-types/order.ORDER_RECEIVED/events
```