Setup (Windows 11)
Everything runs natively on Windows from PowerShell. Postgres is the only thing in Docker.
1. Install the tools
winget install OpenJS.NodeJS.LTS
winget install Python.Python.3.12
winget install Docker.DockerDesktop
winget install Microsoft.OpenJDK.17 # only for native Android builds
Python 3.12 or newer and Node 20 or newer are required. Start Docker Desktop once after installing it.
2. Android emulator (optional)
Skip this if you only test on web or a physical phone.
- Enable Windows Hypervisor Platform and Virtual Machine Platform in Windows Features, then reboot.
- Install the Android command-line tools (no Android Studio needed), so that
%LOCALAPPDATA%\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.batexists. - Run:
$sdk = "$env:LOCALAPPDATA\Android\Sdk"
[Environment]::SetEnvironmentVariable("ANDROID_HOME", $sdk, "User")
$p = [Environment]::GetEnvironmentVariable("Path", "User")
[Environment]::SetEnvironmentVariable("Path", "$p;$sdk\platform-tools;$sdk\emulator;$sdk\cmdline-tools\latest\bin", "User")
# open a new terminal, then:
sdkmanager --licenses
sdkmanager --install "platform-tools" "emulator" "system-images;android-36;google_apis;x86_64"
avdmanager create avd -n vesper -k "system-images;android-36;google_apis;x86_64" -d pixel_7
3. One-command setup
From the repo root:
.\vesper setup
This checks your tools, then:
- Installs JS dependencies (root workspaces and
docs/). - Creates
apps/backend/.venvand installs the Python requirements. - Creates
apps/backend/.envandapps/frontend/.envfrom their.env.examplefiles. - Starts Postgres in Docker, applies migrations, and seeds sample data.
It's safe to rerun at any time, and it never overwrites an existing .env or reseeds a database that already has data.
4. Run it
.\vesper dev
This opens two windows: the API on http://localhost:8000 (interactive docs at /docs) and Expo. In the Expo window press a for Android or w for web.
If anything looks wrong, run .\vesper doctor.
.\vesper and not .\vesper.ps1?In PowerShell, .\vesper runs vesper.cmd, which runs scripts\vesper.ps1 with -ExecutionPolicy Bypass, so it works on machines where scripts are blocked by default. The script lives in scripts\ on purpose: if a vesper.ps1 sat next to vesper.cmd, PowerShell would pick it first and the bypass wouldn't apply.