Code Monkey home page Code Monkey logo

clientseversockiorabbitmq's Introduction

Client Server SocketIO RabbitMQ

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.

Prerequisites

Before you can run this project, you will need to have Docker installed on your system.

Installation

    To install the dependencies for the server, navigate to the server directory and run the following command:

  • docker build -t consumer ./
  • This will build the Docker image for the server.

    To run the server, execute the following command in the root directory of the project:

  • docker-compose up --build
  • This will start the server and the client on ports 3002 and 3000 respectively.

  • docker-compose exec consumer /bin/bash -c 'for ((i=1;i<=1;i++)); do node publisher.js; done'
  • 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.

Reference

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

Contributing

If you would like to contribute to this project, feel free to submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

clientseversockiorabbitmq's People

Contributors

umesh121212supreme avatar umesh-khatiwada avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.