Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/san-pblr-gct/socket-mongo-chat
Chat Application using Socket.io and Mongo db written in ES6 way.
https://github.com/san-pblr-gct/socket-mongo-chat
es6 express mongodb nodejs socket-io socketio
Last synced: 21 days ago
JSON representation
Chat Application using Socket.io and Mongo db written in ES6 way.
- Host: GitHub
- URL: https://github.com/san-pblr-gct/socket-mongo-chat
- Owner: san-pblr-gct
- Created: 2018-03-26T09:13:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T11:34:10.000Z (almost 7 years ago)
- Last Synced: 2024-11-21T22:35:27.556Z (3 months ago)
- Topics: es6, express, mongodb, nodejs, socket-io, socketio
- Language: HTML
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
Chat Application using Socket.io and Mongo db written in ES6 way.
Key points while setting up:
If you are using mongo first time, please do the below steps.
1. install mongo from their website.
2. Create a folder /data/db in C: (Mongo works only in this folder)
3. Go to mongo bin located inside Program files (C:\Program Files\MongoDB\Server\3.4\bin) and open command prompt and run "mongod"
4. The above step will start mongodb
5. Open separate command window inside mongo bin and run " mongo"Some of the commands for mongo which you need to see the data.
1. show dbs (shows all databases)
2. db (shows which database you are in)
3. use xxx (xxx refers to the database you want to navigate to)
4. show collections (show collections inside the database)
5. db.xxx.find() (To show the data inside the collection, replace xxx with the collections)Mongo cheatsheet for future references
https://gist.github.com/aponxi/4380516To run the application
1. install npm
2. Also install nodemon globally "npm install nodemon -g"
3. run npm start in cmd
4. Browse the html page in firefox or host it in IIS or other web server using parcel/webpack/express. Running file directly in chrome will mess up with connecting socket and it won't workInspired from Brad traversy tutorial.
Future plans:
1. Show list of connected users.
2. Send screenshot using html2canvas across page.