A nice feature add-on to the Microblog project as part of my learning through the [Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world).
This feature is implemented using **Socket IO** and eventlet async server.
**Source Code** : [https://github.com/adilcpm/](https://github.com/adilcpm/microblog)
**Live Version** : https://microblog.mcubeh.in
**Chat Related Files:**
* app/main/routes.py
* app/main/sockets.py
* app/static/chat.css
* app/static/chat.js
# Features
* Updates total no of unread chats
* Updates total no of unread messages for each chat
* Real time chat, no refresh
* Know when the other person is typing by a nice animation
* Know if the other person is online
I know my code is probably messy, and database design could be the worst design of all, and that's why i am asking everyone in the subreddit to go take a look at the application and also through the source code and provide feedback. And if anyone has any doubts how i implemented and deployed, be sure to reply.
The feedback can be good, can be bad, don't sugar coat it. Give it straight to me.
Thanks in advance, cheers !
https://preview.redd.it/0bwc85lv5sw41.jpg?width=2981&format=pjpg&auto=webp&s=bba64a7529cc0a0e932734c2fa484ba9ed49493d
https://preview.redd.it/lbeuy4lv5sw41.jpg?width=2988&format=pjpg&auto=webp&s=8adbeff89dfa6af82d672c739ece02e110d46cf1
Just a little tip: its requirements.txt not [requirments.txt](https://github.com/adilcpm/microblog/blob/master/requirments.txt)
where did you deploy this? looks great!
Well done!