ScaleRocket/Mobile

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 install

2. Configure Your Backend

Copy the example env file and add your Supabase credentials:

cp .env.example .env

Edit .env:

EXPO_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=eyJ...your-anon-key

Find these values in your Supabase dashboard under Settings > API.

Then configure your Supabase project:

  1. Auth — Email/password is enabled by default
  2. Google OAuth (optional) — Configure in Authentication > Providers
  3. Apple Sign-In (optional) — Configure in Authentication > Providers
  4. Redirect URL — Add scalerocket:// to Authentication > URL Configuration > Redirect URLs

Copy the example env file:

cp .env.example .env

Set up Convex:

npx convex dev

This 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.cloud

3. Run on a Device

Start the Expo development server:

npx expo start

This shows a QR code in the terminal.

Option A: Expo Go (quickest)

  1. Install Expo Go on your phone (iOS App Store / Google Play)
  2. Scan the QR code from the terminal
  3. The app loads directly on your device

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 development

Install the resulting build on your device, then run:

npx expo start --dev-client

Option C: Simulators

npx expo start --ios       # Requires Xcode (macOS only)
npx expo start --android   # Requires Android Studio

4. EAS Build Setup

First-time EAS configuration:

npm install -g eas-cli
eas login
eas build:configure

This generates/updates eas.json with three build profiles:

ProfilePurposeDistribution
developmentDev builds with dev clientInternal
previewTesting builds (no dev tools)Internal
productionApp Store / Play Store buildsStore

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).

On this page