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β¦