Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T06:49:49.000Z (6 months ago)
- Last Synced: 2024-07-23T08:46:43.044Z (6 months ago)
- Topics: mongodb-database, node-module, nodejs, socket-io
- Language: HTML
- Size: 1.84 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Chat App with MongoDB & Socket.io
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub contributors](https://img.shields.io/github/contributors/Naereen/StrapDown.js.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/contributors/) [![Open Source Love png1](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/) [![saythanks](https://img.shields.io/badge/say-thanks-ff69b4.svg)](https://saythanks.io/to/kennethreitz)
[![ForTheBadge built-with-love](http://ForTheBadge.com/images/badges/built-with-love.svg)](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.
![](img/mongo-chat.png)
## 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/)
![](img/code.png)