This project is a modern Android application built with Jetpack Compose, showcasing best practices for integrating Supabase for authentication, OAuth, storage, and real-time CRUD operations. It serves as a reference for developers aiming to build scalable, maintainable Android apps with a robust backend.
- Supabase Integration: Email/password authentication, OAuth (e.g., Google), file storage, and real-time database operations.
- Jetpack Compose: Declarative UI for a responsive and modern user experience.
- Hilt Dependency Injection: Clean architecture for modularity and testability.
- Real-time Data: Leverages Supabase's real-time subscriptions for live updates.
- CI/CD: Automated builds and testing via GitHub Actions.
- Image Loading: Efficient image handling with Coil.
- Android Studio: SDK 30 (Android 11) or higher.
- Supabase Account: Obtain API key, secret, and project URL from Supabase.
- Kotlin: Version 1.9.0 or higher recommended.
- Clone the repository:
git clone https://github.com/hieuwu/product-sample-supabase-kt.git
- Open the project in Android Studio.
- Create or update the
local.properties
file in the project root:ReplaceAPI_KEY=YOUR_SUPABASE_API_KEY SECRET=YOUR_SUPABASE_SECRET SUPABASE_URL=YOUR_SUPABASE_URL
YOUR_SUPABASE_API_KEY
,YOUR_SUPABASE_SECRET
, andYOUR_SUPABASE_URL
with values from your Supabase project dashboard. - Sync the project with Gradle and build the app.