Welcome to the Chat Application! This project is a real-time chat app built using Node.js, Express, Socket.IO, and vanilla JavaScript. It features a dark-themed UI and allows users to join a chat room, send and receive messages, and see notifications when users join or leave the chat.
Checkout Live Preview by clicking the image below:
-
Frontend:
- Vite Vanilla JS Project
- socket.io-client (for connecting to websocket server)
-
Backend:
- socket.io (for websockets)
- dotenv (for enviroment variables)
- nodemon (for development server)
- express (for handling HTTP requests)
- Real-time messaging with Socket.IO
- User notifications for joining and leaving the chat
- Dark-themed UI with responsive design
- Support for multiple users in a chat room
- Dynamic message display with animations
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express, Socket.IO
- Styling: CSS for a dark-themed UI
- Development Tools: Vite for frontend build tool
To get started with the chat application, follow these steps:
- Node.js and npm installed on your machine
-
Clone the repository:
git clone https://github.com/yourusername/chat-app.git cd chat-app
-
Install Backend dependencies:
cd server npm install
-
Install Frontend dependencies:
cd ../client npm install
-
Create a
.env
file in the server directory with the following content:PORT=9000 CLIENT_URL=http://localhost:3000
-
Start the backend server
cd server npm start
-
Start the fronend server
cd ../client npm run dev
- Open your browser and go to http://localhost:3000.
- Enter a username and click "Join" button.
- Start sending messages and see real-time updates.
Contributions are welcome! Please follow these steps:
Inspired by various real-time chat applications Uses Socket.IO for real-time communication Styled with CSS for a dark-themed UI
Feel free to adjust any details to better match your project.