For fixes and features please check the changelog.
- Typescript
- Express
- MongoDB
- HTTP/2
- finish express server(✓)
- change node.js to typescript(✓)
- create unit tests(✓)
- (optional) create code convergence
- drop collections currently only manuell
- create http/2 and https server(✓)
- simple logging(✓)
- update HTTP/2 Streaming
{
topic: string,
deviceID: string,
messageType: string,
content: {
(default: values,
...)
},
timestamp: byServer,
}
Sort:
{ key: 1 } // ascending
{ key: -1 } // descending
http://192.168.0.100:31672/
Default collecions is "IoT"
GET
/messaging/:collection/find
{
(search: {},)
(sort: {},)
(limit: number)
}
POST
/messaging/:collection/insert
{
"topic": string,
"deviceID": string,
"messageType": string,
"content": {
("value": "2")
}
}
DELETE
/messaging/:collection/delete
{
"type": "one" or "many",
"query": {}
}
This controller streams the insert to http://silex-dashboard:999, which is a HTTP/2 connection.