This project is a real-time chat application built using Node.js, Express, and Socket.io. It enables instant messaging between users, providing a simple and intuitive interface for connecting, exchanging messages, and staying in touch in real-time.
- Real-Time Communication: Utilizes Socket.io to establish WebSocket connections for instant messaging.
- User-Friendly Interface: Provides a clean, modern chat interface with intuitive user interactions.
- Dynamic Updates: Messages are dynamically updated in real-time without manual refreshing.
- Styling: The application features a visually appealing design with a responsive layout.
- Node.js: Runtime environment for server-side JavaScript.
- Express: Web application framework for handling HTTP requests and serving static files.
- Socket.io: Library for real-time bidirectional communication between the server and clients.
- HTML, CSS, JavaScript: Front-end development for user interface creation.
-
Clone the Repository: git clone https://github.com/shubhamch95/realTime-chat
cd real-time-chat -
npm install
-
npm start
-
Open your web browser and navigate to http://localhost:9000.
- Enter your name when prompted to start chatting.
- Type messages in the input area and press Enter to send.
- Real-time incoming messages will be displayed in the chat area.
- The chat area dynamically scrolls to show the latest messages.
- public: Contains static files (HTML, CSS, client-side JavaScript).
- server.js: Express server configuration and Socket.io setup.
- client.js: Client-side JavaScript for managing user interactions.
- style.css: Cascading Style Sheets for styling the chat interface.
- package.json: NPM configuration with project dependencies.
Contributions are welcome! Feel free to submit issues or pull requests.