Local Development
This guide covers running FindU components on your local machine.Running Components
Web Dashboard
- URL: http://localhost:5173
- Hot Reload: Yes
- Environment: Uses
.env.localsettings
iOS App
- Simulator: iPhone 15 Pro recommended
- Device: Requires developer certificate
- Backend: Points to dev Supabase
ML Engine
- URL: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Requirements: Python 3.9+
Database Management
Access your Supabase project through the web dashboard:- Dashboard: https://supabase.com/dashboard
- SQL Editor: Run queries and migrations
- Table Editor: Visual data management
- Auth: Manage users and permissions
Common Development Tasks
Managing Environments
Environment configuration is managed through.env files in each repository:
- Development: Use development Supabase URL and keys
- Production: Use production Supabase URL and keys
.env file with the appropriate credentials. Get these from your team lead or Supabase dashboard.
Running Tests
- Web App
- iOS App
- ML Engine
Database Tasks
Use the Supabase dashboard for database management:-
Create Migrations:
- Go to SQL Editor in Supabase dashboard
- Write your SQL migration
- Save it in your repository for version control
-
Apply Migrations:
- Run SQL directly in the dashboard
- Or include in PR for team review
-
View Data:
- Use Table Editor for visual inspection
- SQL Editor for complex queries
Debugging
Web Dashboard
- Chrome DevTools: Best for React debugging
- React DevTools: Install browser extension
- Network Tab: Monitor Supabase calls
iOS App
- Xcode Debugger: Breakpoints and variable inspection
- Console Logs: View in Xcode console
- Network Debugging: Use Proxyman or Charles
Database
- Supabase Dashboard: SQL editor and logs
- Table Editor: Visual data inspection
- Logs Explorer: Real-time query logs
Tips & Tricks
Use Multiple Terminals
Run each service in its own terminal for easy monitoring
Watch the Logs
Keep logs visible to catch errors early
Test on Real Devices
iOS simulator doesn’t catch all issues
Use Dev Data
Never test with production data locally
Troubleshooting
Port Already in Use
Port Already in Use
Kill the process using the port:
Module Not Found
Module Not Found
Clear caches and reinstall:
Supabase Connection Failed
Supabase Connection Failed
- Verify credentials in your
.envfile - Check Supabase dashboard status
- Ensure you’re using the correct environment keys
- Test with a simple query in the dashboard
Next Steps
- Review workflow guide for git practices
- Check architecture to understand component interactions
- Browse contributing guide for coding standards