Giter Club home page Giter Club logo

chat_system's Introduction

Project Title: Scalable Chat Application with WebSockets and Upstash Redis

Markdown Monster icon

Features

  • Send and receive messages
  • Display current connection count

Project Objectives

  1. Implement real-time communication with WebSockets
  2. Utilize Redis Pub/Sub for communication across multiple instances
  3. Employ Redis for storing data (connection count/messages)
  4. Containerize the application using Docker and docker-compose
  5. Implement Docker multi-stage builds
  6. Implement graceful shutdowns

Technologies Used

  • Fastify - Backend
  • Websockets - Realtime communication
  • Next.js - Frontend
  • Tailwind & Shadcn UI - Styling
  • Redis - Pub/Sub and data storage
  • Docker/docker-compose - Containerization
  • Vercel - Hosting the frontend

Docker Initialization

To initialize the Docker environment for this project, follow these steps:

  1. Clone the project repository.

  2. Navigate to the project directory.

  3. Create a new file named .env in the root directory.

  4. Add the following line to the .env file, replacing UPSTASH_REDIS_REST_URL with your Upstash URL:

    UPSTASH_REDIS_REST_URL=your_upstash_url
    
  5. Save the .env file.

Docker Commands

To run the project, use the following command:

docker-compose up

Feel free to explore and enhance this project.

chat_system's People

Contributors

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