Welcome to Elluminar! This guide will get you up and running quickly.
- Flutter: 3.10+
- Dart: 3.0+
- Node.js: 16+ (for scripts)
- Git: Latest version
- macOS: Xcode 14+ (for iOS development)
- Windows: Visual Studio with C++ tools
- Linux: Standard development tools
# Clone the repository
git clone <repository-url>
cd elluminar_mobile
# Set up environment
./scripts/setup_environment.sh# Copy environment template
cp config/environment-template.env .env
# Edit .env with your credentials (see configuration guide below)# Generate complete database setup
dart run scripts/supabase/generators/generate_database_refactored.dart# Install dependencies
flutter pub get
# Run on web (recommended for development)
flutter run -d chrome
# Or run on connected device
flutter runYour .env file needs these credentials:
# Supabase Configuration (Required)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key-here
# OAuth Configuration (Required for auth)
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-client-secret
# Optional OAuth providers
FACEBOOK_CLIENT_ID=your-facebook-app-id
GITHUB_CLIENT_ID=your-github-client-id- Go to Supabase Dashboard
- Select your project → Settings → API
- Copy
Project URLandanon publickey
- Go to Google Cloud Console
- Create OAuth 2.0 Client ID (Web application)
- Add authorized origins (e.g.,
http://localhost:3000) - Copy Client ID and Secret
After configuring environment:
# Apply database policies to Supabase
dart run scripts/supabase/utilities/apply_policies.dart
# Verify setup
./scripts/supabase/utilities/test_refactored_system.sh- Environment variables configured
- Supabase project connected
- Google OAuth configured
- Database policies applied
- App runs on web browser
- Authentication works (test login)
# Start development server
flutter run -d chrome
# Hot reload: Press 'r' in terminal
# Hot restart: Press 'R' in terminal# After modifying Prisma schema
dart run scripts/supabase/generators/generate_database_refactored.dart
dart run scripts/supabase/utilities/apply_policies.dart# Run Flutter tests
flutter test
# Test database system
./scripts/supabase/utilities/test_refactored_system.shSolution: Ensure GOOGLE_CLIENT_ID is in your .env file and the file is in project root.
Solution: Run database policy application:
dart run scripts/supabase/utilities/apply_policies.dartSolution: Check your SUPABASE_URL and SUPABASE_ANON_KEY in .env file.
Solution: Clean and rebuild:
flutter clean
flutter pub get
flutter runAfter successful setup:
- Authentication: Authentication System
- Architecture: System Architecture
- Features: Feature Documentation
- Development: Development Guide
- Use web for development: Fastest hot reload
- Check logs: Use browser dev tools for debugging
- Environment first: Always configure
.envbefore development - Database policies: Re-apply after schema changes
- Git hooks: Commit tests will run automatically
- Troubleshooting: Global Troubleshooting
- Authentication Issues: Auth Troubleshooting
- Database Issues: Database Troubleshooting
🎉 Ready to build amazing consultation experiences!