Code Monkey home page Code Monkey logo

chat's Introduction

Chat server ๐Ÿ’ฌ

This is an implementation of a chat server, utilizing a microservices-based architecture for handling message exchanges between users.

Architecture ๐Ÿ› ๏ธ

The project consists of three main parts:

  1. Main server. Written in C++ using the Poco library, it is responsible for for handling messages, managing users, and maintaining network connections.
  2. Proxy server. Implemented in Node.js, Express, and WebSocket, it acts as a bridge between the client and the main server, allowing the use of WebSockets on the client side.
  3. Client. Created using the Quasar framework, enabling a user interface that allows interaction with the servers, sending messages, joining, and leaving the chat.

Features ๐Ÿš€

  • ๐Ÿ“ฅ Joining the chat. Users can enter their nickname and join the chat.
  • ๐Ÿ’ฌ Public messages. Allows sending messages that are visible to everyone in the chat.
  • ๐Ÿ•ต๏ธโ€โ™€๏ธ Private messages. Users can send private messages that are only visible to the sender and the recipient.
  • ๐Ÿ“ค Exiting the chat. Option to leave the chat.

Installation and running ๐Ÿ”ง

Main server

Requirements

  • CMake version 3.26 or higher.
  • C++ compiler supporting C++23 standard.

Build instructions

  1. Clone the repository to your local machine:
    git clone https://github.com/Braun-Alex/chat.git
    cd chat/server
  2. Create a build directory and navigate into it:
    mkdir build
    cd build
  3. Run CMake to generate the build files:
    cmake ..
  4. Build the project:
    cmake --build .
  5. After a successful build, run the server:
    ./server

Proxy server

Ensure you have Node.js and npm installed. Run the following commands:

cd chat/middleware
npm install
npm start

Client

Ensure you have Quasar CLI installed. Run the following commands:

cd chat/client
npm install
quasar dev

Screenshots ๐Ÿ“„

Author โœ’๏ธ

Alex Braun.

License ๐Ÿ“‹

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

chat's People

Contributors

braun-alex 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.