Skip to content

Real-time chat at scale: A socket.io server setup to handle 100k+ chat messages (db reads/writes) per minute in a single process.

Notifications You must be signed in to change notification settings

bennyschmidt/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install & Run


MongoDB

Prerequisites:

  • Mongo needs Xcode 12.3 (or Command Line Tools 12.3 beta)

Install mongo:

brew tap mongodb/brew

Install database tools:

brew install mongodb-community@4.4

Start local database:

brew services start mongodb-community@4.4


Server

cd server

npm i

npm start


Client

cd client

npm i

npm start

To run the frontend test with 100k messages

cd client

npm test


Notes: use Node 14+

About

Real-time chat at scale: A socket.io server setup to handle 100k+ chat messages (db reads/writes) per minute in a single process.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages