Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eddiescj/chat-api-node
A simple node with kafka and restify.js message service to work as a chat using a websocket to connect the Frontend Application (https://github.com/EddieSCJ/chat-frontend)
https://github.com/eddiescj/chat-api-node
docker kafka node-js nodejs socket-io socketio-server socketioserver
Last synced: about 1 month ago
JSON representation
A simple node with kafka and restify.js message service to work as a chat using a websocket to connect the Frontend Application (https://github.com/EddieSCJ/chat-frontend)
- Host: GitHub
- URL: https://github.com/eddiescj/chat-api-node
- Owner: EddieSCJ
- License: mit
- Created: 2021-02-09T04:01:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-27T07:28:41.000Z (over 3 years ago)
- Last Synced: 2023-03-06T17:34:07.972Z (over 1 year ago)
- Topics: docker, kafka, node-js, nodejs, socket-io, socketio-server, socketioserver
- Language: JavaScript
- Homepage: https://dev.to/eddiescj
- Size: 52.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chat API
A simple node with kafka and restify.js message service to work as a chat using a websocket to connect the [Frontend Application](https://github.com/EddieSCJ/chat-frontend)### How it works?
When you write a message in the frontend application, the frontend app will send a post request to this backend service, at this post we will validate and use a producer to send this message to a kafka queue where a consumer (in anywhere) will consume the message and implement it's own solution, our solution is to use a websocket (provided by socket.io) to connect the frontend app and after the message be consumed, send it processed to the chat.### What do I need to run it?
* Docker
* Download this project and open the terminal in its folder### Docker commands to run this app
* After open the terminal in its folder, just type
```
docker build -t chat-api .
```
```
docker-compose -up
```**It will run at localhost:8080**
Enjoy the project and any doubt, just contact me by email.