Overview of My Submission
WeTube Server - The backend of WeTube, an OpenSource YouTube clone,
I've had this project in my plans for about a year now.I have no idea why?
possibly because I watch YouTube a lot!
There are several tutorials on YouTube for that as well, but I chose to make it myself.
I received an email regarding the Dev x Redis hackathon when I started the project two days ago.
And I decided to build it with Express and Redis.
And here are the outcomes.
Actually, I had planned to create the front end as well, but I was unable to do so in two days.
So I'm submitting the Backend.
Here is a screen photo of the Frontend (Home Page), which I was unable to complete.
live demo (server) - https://wetube-server-production.up.railway.app
Submission Category: Wacky Wildcards
Language Used: JavaScript
Link to Code
WeTube Server π
WeTube Server - The backend of WeTube, an OpenSource YouTube clone.
This project has been in my plans
At the same time I started this two days ago, I received an email about the hackathon, and
I attempted to build it using redis and express
Accessible Routes πβ
Screenshot of Frontend (not completed) πβ
live demo (server) - https://wetube-server-production.up.railway.app
How it works
How the data is stored:
For the development, I used the Redis-OM node
There are 4 different schemas: the User, Token, Video, and Comment Schemas.
1. User
schema :
- entityID: string
- email: string
- username: string
- password: number
- profile: string
- followers: string[]
- isVerified: boolean
- videos: string[]
The entityId
and username
are indexed here, allowing us to find users by entityId and username.
2. Token
schema :
- entityId: string
- user: string
- token: string
- passwordReset: boolean
This was used to store theβ¦
Additional Resources / Info
- 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)