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
3. Setup Web Store
Run dev server
4. Setup iOS App (Mac only)
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
