💻 PROJECT NAME ✨ => 💻 : Socket.io Live Chat with React and CSS 🧑🏫
--- ## 🔗 Profile Links✨
Resume | Github | Portfolio | Blogger | Medium | |
---|---|---|---|---|---|
This project is a simple real-time chat application built using Socket.io, React, and CSS. It allows users to join chat rooms, enter a username, and engage in real-time chat with multiple users.
Node.js
npm (Node Package Manager)
https://socket-io-chat-app-p1dy.vercel.app/
https://chatapp-7jhb.onrender.com/
/server: Contains the Socket.io server code.
/client: Contains the React client code.
/public: Public assets.
- User Authentication: Users can enter a unique username on the homepage before accessing the chat application.
- Real-time Chat: Engage in live chat with multiple users in real-time.
- Frontend: Socket.io React CSS3
- Backend: Node.js, Express.js
-
Clone the repository:
git clone https://github.com/shikhu51197/Socket.io-ChatApp.git
-
Go to Backend Directory
cd Backend
-
Install Dependencies:
npm install
-
Application Start
npm start
-
Go to Frontend Directory
cd Frontend
-
Open With Live Server
-
Enter a username on the homepage and click on the "Login" button.
-
Navigate to the chat page to engage in real-time chat with multiple users.
You will need to set the following environment variables in a .env
file:
PORT=`YOUR_REQUIRED_PORT`
MONGO_URL=`YOUR_MONGO_ATLAS_URL`
For detailed information on how to use our API, please refer to the API documentation.
Route | Endpoint | Description | Features |
---|---|---|---|
Welcome Message | POST / | Provides a welcome message to the API and Authenticate. | - Welcome message & user login |
Route | Endpoint | Description | Features |
---|---|---|---|
user chat page | /chat | chat with multiple users. | - Chat with login user |
Serial No | Backend | Frontend |
---|---|---|
1 | nodemon | socket.io-client |
2 | socket.io | react-bottom-scroll |
3 | cors | react |
4 | express | react-router-dom |
Contributing
💻 Contributions are welcome! Please follow the standard guidelines for contributing.