Skip to main content

Setting Up Your Environment

This guide explains how to configure your development machine for building and running CommitT, with a focus on Windows WSL2 setups.

WSL2 to Android Connectivity (ADB Bridge)

If you are developing inside WSL2 on Windows, the Android Debug Bridge (ADB) inside WSL cannot natively see devices plugged into Windows. You must bridge them using socat or TCP forwarding.

Step 1: Start ADB Server on Windows

Open PowerShell on Windows and run:
Keep this window open. This exposes the Windows ADB server on port 5037 to your network.

Step 2: Configure WSL2 to use Windows ADB

Inside WSL2, point your local ADB client to the Windows host IP address:
  1. Add the following to your ~/.bashrc or ~/.zshrc:
  2. Reload your shell configuration:

Step 3: Verify Connection

Verify your device is listed in WSL:
If you see your device (e.g., Lenovo K12 Note), the bridge is working!

Environment Variables

Copy the .env.example templates in the monorepo packages to configure your local keys.

1. Backend (packages/backend/.env.local)

This file is automatically generated by Convex when you run npx convex dev, but you need to manually add the following keys for authentication and notifications:

2. Native Client (apps/native/.env)

Ensure the Expo client knows where to find the local Convex client: