https://github.com/thedvlprs/mongo-chat
Simple Node.js chat application that uses a MongoDB database to store messages and Socket.io for bi-directional communication. Although this is a simple app, the code is a bit advanced but I do try and explain things the best I can thru comments left in the code.
https://github.com/thedvlprs/mongo-chat
mongodb-database node-module nodejs socket-io
Last synced: 10 months ago
JSON representation
Simple Node.js chat application that uses a MongoDB database to store messages and Socket.io for bi-directional communication. Although this is a simple app, the code is a bit advanced but I do try and explain things the best I can thru comments left in the code.
- Host: GitHub
- URL: https://github.com/thedvlprs/mongo-chat
- Owner: thedvlprs
- Created: 2019-08-08T13:27:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T05:21:56.000Z (over 1 year ago)
- Last Synced: 2025-04-06T07:52:10.134Z (about 1 year ago)
- Topics: mongodb-database, node-module, nodejs, socket-io
- Language: HTML
- Size: 1.84 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Chat App with MongoDB & Socket.io
[](https://opensource.org/licenses/MIT) [](https://GitHub.com/Naereen/StrapDown.js/graphs/contributors/) [](https://github.com/ellerbrock/open-source-badges/) [](https://saythanks.io/to/kennethreitz)
[](https://GitHub.com/Naereen/)
### Simple Node.js chat application that uses a MongoDB database to store messages and Socket.io for bi-directional communication. Although this is a simple app, the code is a bit advanced but I do try and explain things the best I can thru comments left in the code.

## Installation
In the project directory, you need to download the following dependencies into your package.json file:
### `npm install mongodb@^2.2.36 socket.io --save`
Then run:
### `npm start`
Make sure that you have the following script placed within your package.json file to run thru *npm start* command line:
` "scripts": {
"start": "node server.js"
}
`
Runs the app in the development mode.
Open [http://localhost:4000](http://localhost:4000) to view it in the browser.
## Learn More
You can learn more in the [Realtime application framework (Node.JS server)](https://github.com/socketio/socket.io)
You can learn more in the [Mongo DB Native NodeJS Driver](https://github.com/mongodb/node-mongodb-native)
## Applications
Download Robomongo [Robo 3T](https://robomongo.org/)
