Overview of My Submission
WatchYaari is a platform where friends can watch youtube videos together while connected over a video chat. It is primarily built using MEAN stack, WebRTC, socket.io & Redis.
The idea for the same originated back in April 2020 when people were socially distant due to COVID-19 outbreak & while talking to bunch of friends over a video call, the need for hanging out with friends during social distancing was the bootstrap point of WatchYaari.
Initially we had started off with youtube but the plan was to extend integrating with various OTT platforms.
Submission Category:
MEAN/MERN Mavericks
I have used Redis in the following 2 ways:
- As a primary database instead of MongoDB (i.e. replace “M” in MEAN/MERN with “R” for Redis).
- Added caching and advanced searching capabilities using JSON and Search modules.
[Video Explainer of My Project]
Language Used
JS/TS/Node.js
Link to Code
WatchYaari - Watch videos together with your friends
Platform where users can watch youtube videos while on a video chat. Basically a digital party where users can enjoy watching videos together Separated by distance, brought together by WatchYaari.
Overview video (Optional)
Here's a short video that explains the project and how it uses Redis:
How it works
How the data is stored:
Used RedisJSON for saving JSON data in Redis with the help of redis-om nodejs library.
How the data is accessed:
Used RedisSearch to query data stored in Redis with the help of redis-om nodejs library.
Keys changes while moving from MongoDB to Redis as primary database
-
Changed MongoDB ObjectId dependecies to RedisJSON entityId
-
Changed Mongoose models to RedisJSON schema
-
Changed queries
Architecture diagram
How to run it locally?
Prerequisites
-
Node - v14.16.0
-
Angular: 9.1.9
-
Angular CLI: 9.1.4
-
NPM -…
- Check out Redis OM, client libraries for working with Redis as a multi-model database.
- Use RedisInsight to visualize your data in Redis.
- Sign up for a free Redis database.
Top comments (0)