DEV Community

Cover image for Image hosting service built with Next.js, Supabase, and TailwindCSS. πŸ“Έβš‘οΈπŸ“
L.L.
L.L.

Posted on β€’ Edited on

9 3

Image hosting service built with Next.js, Supabase, and TailwindCSS. πŸ“Έβš‘οΈπŸ“

A lot of folks are talking about Supabase. Also,Next.js seems to be trending right now, and I never tried them. πŸ˜›

So, one of the projects that I had in mind for a while was the perfect fit to apply these two together. πŸ€“

After spending approx. 12 hours, I finished the v1 for gpic - Free Image Optimizer & Hosting Service.

Built with:

  • Next.js
  • Supabase (DB and Storage)
  • TailwindCSS

Quick Demo:

The Motivation

Well, I love communities with markdown available (DEV, Reddit, Indiehackers,...), but that means that I need to...

  1. Go to https://imgbb.com/
  2. Select/Drag'n'drop the image -> Hit Upload
  3. Grab the code
  4. Insert in the markdown

...in order to add an image to my post.

That was my biggest motivation! I just wanted something clean and with an option to copy the link with the markdown.

Hope you find useful, and if you have any feedback, let me know. I'm already working on v2. πŸ€ͺ

Image Description
(Image hosted on gpic)πŸ₯³

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (3)

Collapse
 
husseinkizz profile image
Hussein Kizz β€’

Hey awesome project, it made me think, but am struggling to show my images in next js from supabase storage, how did you get the url to put for Image src? Thanks!

Collapse
 
muracevic profile image
Emir Muracevic β€’

You just need to make your bucket "Public" and you'll be good to go.

Collapse
 
husseinkizz profile image
Hussein Kizz β€’

Yes did that though I didn't want it to be, but it worked now am just facing fileReader and URL.createObject issues, I can't get the result outside the event handler function!

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post