Setup
Install dependencies, configure your backend, and run ScaleRocket Mobile on your device.
Setup
Get your ScaleRocket Mobile app running locally in minutes.
1. Install Dependencies
git clone <your-repo-url>
cd scalerocket-mobile
npm install2. Configure Your Backend
Copy the example env file and add your Supabase credentials:
cp .env.example .envEdit .env:
EXPO_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=eyJ...your-anon-keyFind these values in your Supabase dashboard under Settings > API.
Then configure your Supabase project:
- Auth — Email/password is enabled by default
- Google OAuth (optional) — Configure in Authentication > Providers
- Apple Sign-In (optional) — Configure in Authentication > Providers
- Redirect URL — Add
scalerocket://to Authentication > URL Configuration > Redirect URLs
Copy the example env file:
cp .env.example .envSet up Convex:
npx convex devThis will prompt you to log in and create a new project. The CLI automatically populates your .env with the deployment URL.
EXPO_PUBLIC_CONVEX_URL=https://your-project.convex.cloud3. Run on a Device
Start the Expo development server:
npx expo startThis shows a QR code in the terminal.
Option A: Expo Go (quickest)
- Install Expo Go on your phone (iOS App Store / Google Play)
- Scan the QR code from the terminal
- The app loads directly on your device
Option B: Development Build (recommended)
Dev builds include native modules that Expo Go does not support (like SecureStore).
npm install -g eas-cli
eas login
eas build --platform ios --profile development
eas build --platform android --profile developmentInstall the resulting build on your device, then run:
npx expo start --dev-clientOption C: Simulators
npx expo start --ios # Requires Xcode (macOS only)
npx expo start --android # Requires Android Studio4. EAS Build Setup
First-time EAS configuration:
npm install -g eas-cli
eas login
eas build:configureThis generates/updates eas.json with three build profiles:
| Profile | Purpose | Distribution |
|---|---|---|
development | Dev builds with dev client | Internal |
preview | Testing builds (no dev tools) | Internal |
production | App Store / Play Store builds | Store |
Troubleshooting
"Missing environment variables" warning
Your .env file is missing or the values are empty. Verify the file exists and contains valid keys.
Expo Go crashes on SecureStore
SecureStore requires a development build. Use eas build --profile development instead of Expo Go.
Build fails on EAS
Check that you are logged in (eas whoami) and your project is linked (eas build:configure).