Feedback micro-service on Node.js
The application is a REST API with messaging service (Bus) dependencies.
- Node.js
- Express.js
- Official nsqjs driver for NSQ messaging service
The service should be properly configured with following environment variables.
| Key | Value | Description |
|---|---|---|
| NSQD_ADDRESS | bus.yourdomain.com | A hostname or an IP address of the NSQD running instance to publush messages to. |
| NSQD_PORT | 4150 | A TCP port number of the NSQD running instance to publish messages to. |
The service generates events to the Bus (messaging service) in response to API requests.
| Topic | Message | Description |
|---|---|---|
| feedbacks | { name: user_name, email: user_email, comment: text } | Feedbacks. |
Sends a feedback.
| Body Param | Description |
|---|---|
| User email | |
| name | User name |
| comment | Comment |
| HTTP | Value |
|---|---|
| StatusCode | 200 |
Source code is under GNU GPL v3 license.