This project is a real-time chat application built using Node.js, Express, and Socket.io. It allows users to join chat rooms and communicate with each other in real-time.
- User Authentication: Secure login and registration system.
- Chat Rooms: Users can create and join multiple chat rooms.
- Real-Time Messaging: Instant messaging using Socket.io.
- User Presence: Display online/offline status of users.
- Message History: Store and retrieve chat history.
- Node.js
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/himanishpuri/chat-application.git
- Navigate to the project directory:
cd chat-application - Install dependencies:
npm install
- Start the server:
npm start
- Open your browser and navigate to
http://localhost:3000. - Register a new account or log in with existing credentials.
- Create or join a chat room.
- Start chatting!
server.js: Entry point of the application.routes/: Contains route definitions.models/: Contains database models.public/: Contains static files (HTML, CSS, JS).views/: Contains view templates.
- Node.js: JavaScript runtime.
- Express: Web framework for Node.js.
- Socket.io: Real-time communication library.
- MongoDB: NoSQL database.
- Mongoose: MongoDB object modeling tool.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.