This is a web-based real-time chat application that allows users to join chat rooms and exchange messages in real-time. The application is built using HTML, CSS, JavaScript, and Node.js with Socket.IO for real-time communication.
- User authentication with username
- Create and join chat rooms
- Real-time messaging
- Display usernames and timestamps for messages
- List of available chat rooms
- Responsive design for different screen sizes
- Notifications for new messages and user actions (join/leave)
- Node.js
- npm (Node Package Manager)
npm install
node server.js
By default, the application will run on http://localhost:3000
. You can change the hostname and port in the server.js
file if needed.
- Open your web browser and navigate to
http://localhost:3000
. - Enter your username and click "Join Chat".
- Enter a room name and click "Create Room" to create a new room, or select an existing room from the list to join.
- Start sending messages in real-time.
server.js
: The main server file that sets up the Node.js server and Socket.IO.public/index.html
: The HTML file for the chat application's user interface.public/style.css
: The CSS file for styling the chat application's user interface.public/script.js
: The JavaScript file for handling user interactions and real-time messaging.
- HTML
- CSS
- JavaScript
- Node.js
- Express.js
- Socket.IO