Bees are pretty good. ๐
martinrosenberg / mess-hall Goto Github PK
View Code? Open in Web Editor NEWFor throwing messages back and forth down the hall. (That's what "mess hall" means, right?)
License: GNU General Public License v3.0
For throwing messages back and forth down the hall. (That's what "mess hall" means, right?)
License: GNU General Public License v3.0
Bees are pretty good. ๐
Jest has already been installed for client and server, along with Enzyme for the client.
Each instance shows all messages.
The other instance shows only a single ":". The following error is present in the console:
Warning: Each child in a list should have a unique "key" prop.
Check the render method of `ChatLog`. See https://fb.me/react-warning-keys for more information.
in li (created by ChatLog)
in ChatLog (created by App)
in App
The message is bouncing around and being added from multiple places. This creates a duplicate id
, which ChatLog
is using as the list key
.
A "quick fix" would filter out duplicates. But obviously that shouldn't happen to begin with, so figure out how to avoid duplicates.
There's literally no styling in this app except removing the bullets from the list.
That was primarily for quick testing. It's amusing but impractical.
It would be nice to have multiple channels/chatrooms to talk in.
As is, messages from outside (before or after) the current session are unavailable. Storing the history and bringing it back on startup resolves this.
A chat app isn't much good if it's just being intermittently served from some rando's personal laptop.
This is pretty lightweight and unlikely to be used much. May as well put it up on Heroku and stop worrying about it.
Express is big and slow, bloated with dependencies, which is shocking for as minimal a tool as it is.
async
and reduces external dependencies.Important for filtering, sorting, and y'know, just knowing when the messages were sent.
Use date-fns. It's lightweight, pure, and small. No contest. (Don't forget it uses Unicode tokens for date formatting.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.