This is a real-time messaging application that uses SocketIO to establish a connection between the client and server. The server uses RabbitMQ to implement a message queue for processing incoming messages from the client. The processed messages are then sent back to the client via SocketIO.
Before you can run this project, you will need to have Docker installed on your system.- docker build -t consumer ./ This will build the Docker image for the server.
- docker-compose up --build
- docker-compose exec consumer /bin/bash -c 'for ((i=1;i<=1;i++)); do node publisher.js; done'
To install the dependencies for the server, navigate to the server directory and run the following command:
To run the server, execute the following command in the root directory of the project:
This will start the server and the client on ports 3002 and 3000 respectively.
To feed data to the server, execute the following command in the root directory of the project.This will send messages to the server for processing.
wait.sh will wait the rabbitmq to initalize and wait to the timeout .This is the bash command.
https://gist.github.com/christian-draeger/f82ceb31454a38b0dc0958f8ac092b8f If you would like to contribute to this project, feel free to submit a pull request. This project is licensed under the MIT License - see the LICENSE.md file for details.