kjujs
v0.0.2
Published
![kju](https://kju-org.github.io/kju-header.png "kju")
Downloads
1
Readme
kju - open communication framework
kju is an open and simple communication framework that works on a request <-> response
pattern.
- Any participator can create a request with a number of predefined responses.
- Any participator can redeem a response for a given request
For detailed usage instructions, see the official Documentation
Get started
- install via npm:
npm i kjujs --save
- run it with node:
node index.js
// Running kju server on port 80
This will spin up your kju server
API
Your kju server will offer the following REST Endpints:
POST /creationToken
- Generate a token for creating messagesPOST /message?token=XXX
- Create a messageGET /message/:messageId?token=XXX
- Get a raw messageGET /message/:messageId/response/:responseId?token=XXX
- Redeem a responseGET /message/:messageId/responses?token=XXX
- Get all responses for a message
The following two API Endpoints can also be opened int he browser. kju will then render them with a tiny UI.
/message/:messageId?token=XXX
/message/:messageId/responses?token=XXX