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
- 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.
- Node.js and npm installed
- Clone the repository
git clone https://github.com/yourusername/socketchat.git
- 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
- Start the application
npm run start