This guide covers how to setup the Bluerage iOS app for local development.
Expand to see
CONVEX_DEPLOYMENT_URL: Your Convex deployment URL (automatically generated when you create a deployment, found in Convex dashboard)
How to obtain:
- Create a new project at Convex Dashboard
- Copy your deployment URL to the
CONVEX_DEPLOYMENT_URLenvironment variable
CLERK_FRONTEND_URL: Your Clerk frontend API URL (found in Clerk dashboard under API Keys)CLERK_PUBLISHABLE_KEY: Your Clerk publishable key for client-side authentication (found in Clerk dashboard under API Keys)
How to obtain:
- Create an account at Clerk
- Create a new application in your Clerk dashboard
- Copy your Frontend API URL to
CLERK_FRONTEND_URL - Copy your Publishable Key to
CLERK_PUBLISHABLE_KEY
POSTHOG_API_KEY: Your PostHog project API key (sign up at https://posthog.com/)POSTHOG_HOST: PostHog instance URL (usuallyhttps://app.posthog.comorhttps://us.i.posthog.com)
How to obtain:
- Sign up at PostHog
- Create a new project and copy your API key to
POSTHOG_API_KEY - Set the appropriate host URL for your region in
POSTHOG_HOST(usuallyhttps://app.posthog.comorhttps://us.i.posthog.com)
SENTRY_DSN: Your Sentry Data Source Name for error tracking (obtained from Sentry project settings after creating a project at https://sentry.io/)
How to obtain:
- Sign up at Sentry
- Create a new project and copy your DSN to
SENTRY_DSN
- Xcode: 15.0+
- iOS SDK: 17.0+
- Tuist: 4.0+
- SwiftLint: 0.61.0+
Bluerage uses xconfigs for managing environment variables. Project contains example config. Create Release and Debug xcconfigs and fill them:
cp xcconfigs/Config.example.xcconfig xcconfigs/Release.xcconfig
cp xcconfigs/Config.example.xcconfig xcconfigs/Debug.xcconfigThis will setup git hooks, check SwiftLint, install dependencies and create a project. Provide TUIST_BUNDLE_ID (your app's bundle identifier) and TUIST_SENTRY_ORG (your Sentry org) as env params
TUIST_BUNDLE_ID={your_bundle_id} TUIST_SENTRY_ORG={your_sentry_org} make setupYou are good to go!