Add Expo template
This commit is contained in:
34
templates/expo-supabase.md
Normal file
34
templates/expo-supabase.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Expo + Supabase Template (Mobile)
|
||||||
|
|
||||||
|
## Tech Stack
|
||||||
|
- Framework: Expo SDK 51+
|
||||||
|
- Database: Supabase (PostgreSQL)
|
||||||
|
- Auth: Supabase Auth
|
||||||
|
- Navigation: Expo Router
|
||||||
|
- Styling: NativeWind (Tailwind for RN)
|
||||||
|
- Language: TypeScript
|
||||||
|
|
||||||
|
## Project Structure
|
||||||
|
```
|
||||||
|
/app
|
||||||
|
/(tabs) # Tab navigation
|
||||||
|
/(auth) # Auth screens
|
||||||
|
_layout.tsx
|
||||||
|
/components
|
||||||
|
/lib
|
||||||
|
supabase.ts
|
||||||
|
/hooks
|
||||||
|
```
|
||||||
|
|
||||||
|
## Initial Setup
|
||||||
|
```bash
|
||||||
|
npx create-expo-app@latest --template tabs
|
||||||
|
npm install @supabase/supabase-js
|
||||||
|
npm install nativewind
|
||||||
|
```
|
||||||
|
|
||||||
|
## Environment Variables
|
||||||
|
```
|
||||||
|
EXPO_PUBLIC_SUPABASE_URL=
|
||||||
|
EXPO_PUBLIC_SUPABASE_ANON_KEY=
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user