Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 18.x or higher
pnpm
Preferred package manager
Supabase CLI
For local database
Xcode
For iOS development (Mac only)
- Xcode 15+
- iOS Simulator
1. Clone the Repositories
2. Setup Supabase Backend
1
Start Supabase locally
2
Note the credentials
3
Run migrations
3. Setup Web Store
1
Install dependencies
2
Create .env.local
.env.local
3
Update hosts file
Add test subdomains to Add these lines:
/etc/hosts:4
Run dev server
4. Setup iOS App (Mac only)
1
Install dependencies
2
Configure Supabase
Update
Configuration/Development.xcconfig:3
Open in Xcode
4
Run on simulator
- Select a simulator (iPhone 15 Pro)
- Press
Cmd + Rto build and run
Test Data
The local Supabase instance comes with seed data:Test Users
Test Users
Test Products
Test Products
- 5 sample products with images
- 2 categories (Electronics, Clothing)
- Various price points
Test Orders
Test Orders
- 3 pending orders
- 2 completed orders
- Mix of UPI and Razorpay payments
Verify Setup
- Web Store
- iOS App
- Supabase
Visit http://teststore.localhost:3000You should see:
- ✅ Store homepage with products
- ✅ Working cart functionality
- ✅ Checkout flow
Troubleshooting
Subdomain routing not working
Subdomain routing not working
Make sure you:
- Updated
/etc/hostswith test domains - Using
.localhost:3000(notlocalhost:3000) - Middleware is detecting subdomains correctly
Supabase connection errors
Supabase connection errors
Verify Supabase is running:Check .env.local has correct credentials:
iOS build fails
iOS build fails
Common fixes:
- Clean build folder:
Cmd + Shift + K - Delete derived data
- Update Swift package dependencies
- Restart Xcode
Stuck? Join our Discord or create an issue on GitHub
