Chrysolites Tech Academy

Video by HeyTimDev · streamed from YouTube. All rights remain with the creator.

Lesson 5: Connecting Supabase for Accounts and Data

About this lesson

In this video, HeyTimDev integrates Supabase into the short-video app to handle authentication, file storage and database management, giving the project the back end it needs to become a real social app. It begins by explaining why Supabase is a strong choice of backend as a service for a social media app: instead of writing and hosting a separate server, the app can rely on Supabase for accounts, data and files. You then set up a Supabase account and create a new project for the app. The video explains why the project uses PostgreSQL, the relational database at the heart of Supabase, and why relational data is a natural fit for linked content such as friends, likes and bookmarks, where many records refer to one another. Next comes connecting the app safely. Environment variables are added to hold the project's details, and the keys are kept in an environment file rather than written directly into the code. The Supabase client is then created and connected in the app, so that it can handle authentication and database operations from any screen. The video also introduces the other Supabase features that later parts of the series rely on, including storage for videos and images and real-time data for chat. By the end, Supabase is set up in the app and ready for the database structure that the next video builds. Afterwards, read Chapter 5 of the course book, which explains relational tables and works through why database indexes make queries fast.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.