Build An Image Gallery With Supabase Storage and React (Upload Images with Supabase)

  Рет қаралды 21,306

Cooper Codes

Cooper Codes

Күн бұрын

Thanks so much to Supabase for having me as a content creator for their content storm ⛈️! Get ready for Supabase Launch Week 6 here: supabase.com/launch-week
In this video I show how to create a React application with Supabase that allows users to store images in their own image galleries. Users will log in with Supabase Magic Link authorization, and then we handle image upload with PostgreSQL and Supabase Storage. This project is great for any React developers interested in large file storage, and creating a system like this video is a great step forward when creating apps that can scale with massive traffic. You can apply the concepts in this video to creating social media feeds, creating sharable MP3s, sharing 3D objects across users, and many other use cases involving larger files! End of story: Supabase bucket storage is epic.
Full Code: github.com/coopercodes/Supaba...
Enjoying my videos? Sign up for FREE content here: www.thecoopercodes.com/
0:00 Intro
1:40 Initialize Supabase app
2:38 Setup React app + Supabase initialization
4:50 Creating Magic Link login page
11:57 Creating Image Gallery page
13:45 Setting up Supabase Storage
15:59 Image upload to gallery
21:15 Get images from Supabase Storage
24:30 Explaining CDN links
27:15 Showing images to user
30:37 Delete user image
32:49 Functionality test, thanks for watching!

Пікірлер: 45
@RaldCodeVBNET
@RaldCodeVBNET Ай бұрын
Your one of the best youe teaching react, your clearly delivered and ex[lain
@ghassenlabidi5171
@ghassenlabidi5171 Жыл бұрын
Very well explained and straight to the point! Thanks!
@joscfc9719
@joscfc9719 Жыл бұрын
Really enjoyed the vid, I've been following supabase database and auth tutorials and this is just the tutorial i needed to get started with supabase storage!
@FaizalHeesyam
@FaizalHeesyam 10 ай бұрын
simple and clear tutorial. nice pace, easy to understand. keep it up! 👍🏻
@elliottkan
@elliottkan Жыл бұрын
I've just started learning how to code a few months ago. I love your energy and way of breaking things down with pseudocode! Keep it up Cooper, you've got a new subscriber :)
@CooperCodes
@CooperCodes Жыл бұрын
Hey Elliot I appreciate the kind words! This channel has a bunch of videos designed for those who know the basics, and want to go to the next level with some projects! Glad it’s useful for your situation, and thank you for the sub :)
@georgelucasribeiro3696
@georgelucasribeiro3696 10 ай бұрын
Man... you saving me again. Thank you so much for this nice tutorial
@paulthomas1052
@paulthomas1052 Жыл бұрын
I really enjoy these tutorials - great content and nice time-frame. Look forward to your next one. Thanks :)
@CooperCodes
@CooperCodes Жыл бұрын
Glad they're helping you! Thanks for the support :)
@rajsoni8555
@rajsoni8555 Жыл бұрын
Nice one. Helped me get past the hindrance in my ongoing project. Thank you for making this.
@CooperCodes
@CooperCodes Жыл бұрын
Glad to help you get past that hurdle, thanks for watching!
@maskman4821
@maskman4821 Жыл бұрын
Very useful and practical tutorials, thank you so much 🙏
@CooperCodes
@CooperCodes Жыл бұрын
You're very welcome! Thanks for watching :)
@correiapas
@correiapas Жыл бұрын
Great video, It was super clear. Thanks.
@CooperCodes
@CooperCodes Жыл бұрын
Thanks so much Pedro, glad the video was helpful :)
@revaprasetya
@revaprasetya 5 ай бұрын
Great video, thank you sir
@roxo1763
@roxo1763 6 ай бұрын
Best tutorial, thank you so much.
@psyferinc.3573
@psyferinc.3573 Жыл бұрын
thanks cooper more of supabase please with nextjs
@Deus-lo-Vuilt
@Deus-lo-Vuilt Жыл бұрын
Nice bro , I liked supabase and react !
@CooperCodes
@CooperCodes Жыл бұрын
Glad you enjoyed using the technologies! Thank you for watching :)
@thekannadacoder8134
@thekannadacoder8134 Жыл бұрын
thank you so much , it really helped
@CooperCodes
@CooperCodes Жыл бұрын
Glad to hear it! I found the bucket storage stuff confusing initially so glad it helped you :)
@brianwalsh7040
@brianwalsh7040 Жыл бұрын
can you make this exact thing but with nextjs 13 (using the app router)
@rodrigoorellana2389
@rodrigoorellana2389 Жыл бұрын
amazing explanation... question: amazing explanation... question: what happen if we remove a imagen the bucket from the supabase dashboard? I remember firebase takes the changes instantaneously and reflect them in the frontend
@devardilshad3944
@devardilshad3944 8 ай бұрын
amazing thanks for the clarification very insightful. I want to implement a delete image feature but supabase gives an error and i hope you make a short video about that if possible.
@yourdailyanimalfact
@yourdailyanimalfact Жыл бұрын
Cooper how would one use image bucket data in a table of. products like we created in another video of yours. How can we upload a product image and combine it with product name and description table data.
@Holsp
@Holsp Жыл бұрын
Hey, I tried logging in with Supabase email authentification, and when I tried to put the new image into the bucket. I get this error: "401" "Invalid JWT" "new row violates row-level security policy for table" I don't really know what to do with it. I have my cookie so I don't know why it's not taking my JWT. I am a beginner in Auth and don't know if I am missing something. Would you have any ideas?
@hendrywilliam
@hendrywilliam Жыл бұрын
Hello sir, how do we connect table (lets say i created a user table which contains username and password) and storage, and every file uploaded by specific user has its own id? Thanks
@dungsidietpi
@dungsidietpi Жыл бұрын
when I put the website on github, when I click on the link to login in gmail, I can't navigate to the "Your image" page
@ThomazMartinez
@ThomazMartinez 10 ай бұрын
Using UUID will also solve caching issues on client
@user-ye4ut8bb2v
@user-ye4ut8bb2v 8 ай бұрын
How could I print the file name without calling the entire supabase URL? Just the user's file name
@LazriYouness-vr6ej
@LazriYouness-vr6ej 7 ай бұрын
@everyone how to this with next js please
@user-jx4wv9ee8b
@user-jx4wv9ee8b 6 ай бұрын
Brother, is this java code?
@khaqim4148
@khaqim4148 Жыл бұрын
you did not create any table?
@danielpeters4302
@danielpeters4302 Жыл бұрын
Can you do the same thing with Nhost Image hosting and Hasura?
@CooperCodes
@CooperCodes Жыл бұрын
Going to look into Nhost soon, will check out their image hosting and hopefully make some content regarding that :)
@danielpeters4302
@danielpeters4302 Жыл бұрын
@@CooperCodes thanks!
@raynosebastian6275
@raynosebastian6275 Жыл бұрын
bro do you have any react + supabase google auth tutorial ?
@CooperCodes
@CooperCodes Жыл бұрын
Yup, this one: m.kzbin.info/www/bejne/qpjGdJ9rZ6qBbpY
@raynosebastian6275
@raynosebastian6275 Жыл бұрын
@@CooperCodes yoo thanks for the reply bro ♥️, im new in this web dev world so rn i kinda lost 😫
@CooperCodes
@CooperCodes Жыл бұрын
​@@raynosebastian6275 It can be intimidating at first! The projects on my channel aim to take you from a beginner skillset (knowing some fundamentals) to bring you to an intermediate understanding (with the ability to build your own projects!). Best of luck on your web dev journey :)​ Thanks for watching
@RaldCodeVBNET
@RaldCodeVBNET Ай бұрын
CReate more videos
@studioph5.6
@studioph5.6 Жыл бұрын
steap by step with your video and "new row violates row-level security policy for table "objects"" again and again =\
@studioph5.6
@studioph5.6 Жыл бұрын
turned out you have to apply policy for objects, not just policy for yout bucket. Not sure why it works for @CooperCodes. For example, to upload images use following policy for table.objects via sql editor: ALTER TABLE storage.objects ENABLE ROW LEVEL SECURITY CREATE POLICY objects_insert_policy ON storage.objects FOR INSERT WITH CHECK (auth.role() = 'authenticated')
Introduction to Supabase Storage - SupabaseTips
2:22
Supabase
Рет қаралды 12 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 19 МЛН
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 44 МЛН
Why I avoid useEffect For API Calls and use React Query instead
17:45
Supabase Tutorial #10 - Intro to RLS & Policies
7:35
Net Ninja
Рет қаралды 22 М.
Deck.gl geojson 3D map data visualization demo
0:33
WebGL 3D
Рет қаралды 2,7 М.
OpenAI Embeddings Explained in 5 Minutes
5:12
Cooper Codes
Рет қаралды 7 М.
Supabase Crash Course
25:17
Traversy Media
Рет қаралды 127 М.
Deck.gl Bus Routes Visualization
0:43
WebGL 3D
Рет қаралды 1,6 М.
Top 7 CSS frameworks to use in 2024
3:14
CodeSource
Рет қаралды 108
Main filter..
0:15
CikoYt
Рет қаралды 8 МЛН
WWDC 2024 - June 10 | Apple
1:43:37
Apple
Рет қаралды 10 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН