Course book
Short-Video App with React Native and Supabase
Eighteen illustrated chapters, one for each video in the series. They explain the ideas behind each step in original words and work the key calculations by hand.
- Chapter 1Planning a Short-Video AppThe feature list, the Expo, Supabase, TanStack Query and NativeWind stack, how the pieces connect, storage and bandwidth worked by hand, and the order of the build.
- Chapter 2Starting with ExpoReact Native and Expo compared, creating and cleaning a project, version ranges worked by hand, reading and fixing early errors, and the first tabs and routes.
- Chapter 3Styles and RoutesUtility-class styling and NativeWind's configuration, Tailwind scales converted to pixels by hand, layouts, groups and dynamic routes, auth screens apart from the tabs, and route debugging.
- Chapter 4Designing the Tab BarVector icon sets and variants, focused and unfocused states, tab sizes and safe areas worked by hand, a special camera button without a label, and accessibility touches.
- Chapter 5A Back End with SupabaseBackend as a service, why relational data suits social apps, indexes worked by hand, creating a project, environment variables and the client, and testing the connection.
- Chapter 6The Schema and PrismaWhy a schema file helps, connecting Prisma to Supabase, six tables and their relations, writing models, migrations versus db push, and UUID collision odds worked by hand.
- Chapter 7Accounts, Sessions and the Auth ProviderLogin and sign-up screens, Supabase Auth with a linked users table, an auth provider and redirects, sessions that survive restarts, and password entropy worked by hand.
- Chapter 8The Camera and UploadsCamera and microphone permissions, recording with a camera reference, clip sizes and upload times worked by hand, Supabase Storage paths and policies, and a modal camera.
- Chapter 9The Gallery and the PreviewChoosing videos with the image picker, library permissions, a looping preview with a video player, cover and contain fitting worked by hand, and large files and formats.
- Chapter 10The Auto-Playing FeedFetching the feed with creators, signed URLs against public buckets, a paging FlatList, viewability and the switching point worked by hand, and playing one video at a time.
- Chapter 11The OverlayAbsolute layers and touch handling, gradients for readable text, compact counts worked by hand, the native share sheet, and dynamic routes and headers for comments and profiles.
- Chapter 12CommentsLoading a video's comments with their authors, rendering the list, the input bar and keyboard handling, posting with security policies, and relative times worked by hand.
- Chapter 13LikesThe Like table and its constraints, toggling a like, a local set of liked videos with the request savings worked by hand, optimistic updates, and counting likes efficiently.
- Chapter 14Follows and FriendsDirected follows in a table, following and unfollowing safely, follower and following counts, friends as mutual followers worked by hand with sets, and a feed from followed users.
- Chapter 15The Activity FeedActivity drawn from likes, comments and follows, three filtered queries, merging sorted streams worked by hand, grouping repeated events, and routing from the inbox.
- Chapter 16Real-Time ChatFriends-only chat, a stable chat key worked by hand, storing and loading messages, Realtime subscriptions, push compared with polling in a graph, and securing conversations.
- Chapter 17Finishing TouchesA friends-only feed, profile photos in a public bucket with resizing worked by hand, the profile page and its grid geometry, media handling, live updates and testing.
- Chapter 18Shipping to the StoresMaking a clone distinct, safety features for user content, privacy and account deletion, building and submitting with EAS, version and build numbers by hand, and rejections.