This project has been discontinued. Use at your own risk
Disco.pics
Fast image hosting made easy.
Overview video
Here's a short video that explains the project and how it uses Redis:
[Insert your own video here, and remove the one below]
How it works
How the data is stored
There are two different schemas, the User
and Image
schema.
For each user, this is the information that is stored:
- id: string
- email: string
- created_at: date
- token_number: number
- embed_title: string
- embed_site_name: string
- embed_site_url: string
- embed_colour: string
- embed_author_name: string
- embed_desc: string
here, the ID is indexed, so we can find users by their ID.
The Image
schema is the information that is stored for each image:
- uploaded_by: string
- slug: string
- img_url: string
- uploaded_at: date
Here, slug
and uploaded_by
are indexed.
Whenever someone visits the /[slug]
route, the Image
schema is queried for the image with the slug.
Then, using the uploaded_by
…