Skip to content

mananag05/SocketChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocketChat - Scalable Real Time chat web Application

SocketChat is a real-time communication web application that enables instant messaging and connection between users. With a simple and intuitive interface, SocketChat provides a seamless platform for chatting, connecting, and sharing in real time.

Live Site -> https://socket-chat-client-lbl3.onrender.com

Features

  • Real-Time Chat: Instantaneous messaging with other users.
  • User Registration: Create an account for a personalized chat experience.
  • User Authentication: Securely log in to access your account.
  • Seamless Connection: Effortlessly connect with other users in real time.

Getting Started

Prerequisites

  • Node.js and npm installed

Setting Up Locally

  1. Clone the repository
    git clone https://github.com/yourusername/socketchat.git
  2. Configure environment variables
    Create a .env file in the root directory (Server and Client) and set the necessary environment variables, including MongoDB connection string, JWT secret, etc.
    Example .env file:
    PORT=<port>
    MONGO_CONNECTION_STRING=<mongo-connection-string>
    TOKEN_SECRET=<token-secret>
    KAFKABROKER=<kafka-broker-url>
    KAFKAPASS=<kafka-password>
    REDISHOST=<redis-host-url>
    REDISPASS=<redis-password>

3 In /server make sure to replace ca.pem

4 Change/Add the Url of 'Origin' to where the Client Runs Screenshot 2024-02-10 163554

  1. Start the application
     npm run start