-
Node.js and npm:
- Install Node.js and npm by downloading and running the installer from Node.js official website.
-
MongoDB:
- Install MongoDB by following the instructions on the MongoDB Installation Guide.
- Ensure MongoDB is running on your machine.
https://github.com/kennywam/branch.git cd your-branch-repository
npm install
- Ensure your MongoDB server is running.
npm start
- The server will start at
http://localhost:3000
.
- Open your web browser and go to http://localhost:3000 to access the chat application.
- Open multiple browser tabs or devices to simulate different users and test the chat functionality.
- The application uses Socket.io for real-time communication between the server and clients.
- Messages and responses are stored in a MongoDB database.