A Real Time notification system task for SocialCops
Problem Task: Create a real time notification system to notify subscribers about the changes in the MongoDB database.
Link to complete task.
Due to lack of knowledge about Gossip Girl and their characters, I have updated the task to notify us about the updates of various TV shows instead of characters of Gossip Girl.
Tech Stack: Web app = Flask + Heroku + SocketIO + MongoDB/MongoLab
Steps to run app:
Clone the repo and
Install required libraries:
pip install -r requirements.txt
Run the MongoDB server:
Run the flask server:
Screenshots and how to use it:
- First Register and Login:
/Update DBin new tab and send an update for a TV show to MongoDB. This is inserted in the MongoDB db and a notification is sent to
/Notificationsif subscribed and
/All Notifsin real time via SocketIO.
Logoutand Exit the program