View Code? Open in Web Editor
NEW
A very simple socket.io based one-to-one chat
JavaScript 83.99%
HTML 10.81%
CSS 5.20%
simple-socket-chat's Introduction
npm install
to install all dependencies
- configure mongodb in
config.js
- (optional) adjust settings and secrets in
config.js
npm start
to start the server
- the server runs (by default) on
localhost:3000
- /public folder: static files for website
- index.js: main JS file to run
- config.js: configuration file to globally adjust settings
- db.js: database connection, query and validation logic
- sockets.js: socket.io realtime communication logic
- users.js, chats.js: HTTP Routes for API
simple-socket-chat's People
Contributors
Watchers