Supabase is an awesome, open-source alternative to Firebase. Using it you can handle databases, auth and storage as well. Lets look at how we can do this on the Server Side, using NextJS, Email Login, oAuth Login (Github, Google etc). After, we will look at some of the React 19 / NextJS Features to handle forms, useFormStatus and useOptimistic to make out site a great user experience.
Starter Code: jollycod.ing/supatodo-repo
Supabase NextJS Setup: supabase.com/docs/guides/auth...
Supabase oAuth Setup: supabase.com/docs/guides/auth...
-------------------------------------------------------------------
🐦 Twitter (X): jollycod.ing/x
🤓 Personal Site: jollycod.ing/me
💻 GitHub: jollycod.ing/git
JollyUI: jollycod.ing/ui
Chapters:
00:00:00 Intro
00:01:07 Supabase Dashboard
00:08:29 Supabase Setup (Step 1)
00:12:55 Email Login/Signup (Step 2)
00:28:38 Add OAuth Providers (Step 3)
00:42:29 Create and Read (Step 4)
00:52:23 Update and Delete (Step 5)
00:59:52 useFormStatus (Step 6)
01:02:52 useOptimistic (Step 7)
01:16:49 Checkbox form action (Step 8)
01:18:47 Outro
2 июл 2024