Giter VIP home page Giter VIP logo

chat-app's Introduction

Real-time Chat App

Built using Vite + React, NextUI, Node.js, and Socket.io

Project Screenshot

ChatAppSS

How to Run

  1. Install dependencies
npm i
yarn
  1. Run the server
npm run start
yarn start

The server will start listening for connections on http://localhost:3000.

  1. Run the client
npm run dev
yarn dev

The server will start listening for connections on http://localhost:5173.

Application Architecture

The application consists of two main components: the server and the client.

Server

  • Built with Node.js and uses socket.io for managing WebSocket connections.
  • Listens for incoming connections and handles events such as user connection/disconnection and chat messages.
  • When a chat message is received from a client, it broadcasts this message to all other connected clients, excluding the sender.

Client

  • Built with Vite + React and NextUI for creating a dynamic and responsive user interface.
  • Connects to the server using socket.io-client.
  • Provides a simple interface where users can join the chat, send messages, and view messages from others in real-time.
  • Provides information on user connection and disconnection.

chat-app's People

Contributors

ducksblock 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.