This repository serves as a comprehensive starter project for developing React Native and Expo applications with Supabase as the backend.
This is not supposed to be a template, boilerplate or a framework. It is an opinionated guide that shows how to do some things in a certain way. You are not forced to do everything exactly as it is shown here, decide what works best for you and your team and stay consistent with your style.
-
Configure Supabase
- If you haven't already, create an new account on Supabase.
- Create a new project and obtain your Supabase URL and API key.
Note: By default Supabase Auth requires email verification before a session is created for the users. To send users a one-time code, modify the confirm signup template like so:
<h2>Confirm your signup</h2> <p>{{ .Token }}</p>
-
Clone the repository to your local machine
git clone https://github.com/FlemingVincent/expo-supabase-starter.git
- Navigate to the project directory
cd expo-supabase-starter
- Install dependencies
bun install
-
Update environment variables
- Update the
EXPO_PUBLIC_SUPABASE_URL
andEXPO_PUBLIC_SUPABASE_KEY
variables in the.env
file with your Supabase URL and key respectively.
- Update the
-
Start the Expo development server
npx expo start --clear --reset-cache
Contributions to this starter project are highly encouraged and welcome! If you have any suggestions, bug reports, or feature requests, please feel free to create an issue or submit a pull request. Let's work together to enhance the developer experience and make it easier for everyone to build exceptional Expo applications with Supabase.
This repository is licensed under the MIT License. You are granted the freedom to use, modify, and distribute the code for personal or commercial purposes. For more details, please refer to the LICENSE file.