Skip to content

Local setup

  • Node 22 or newer, npm 10
  • Python 3 with cairosvg, fonttools and Pillow only if you want to regenerate brand assets
  • Supabase CLI (brew install supabase/tap/supabase) for a real backend; optional, the app has a demo mode
  • Xcode or Android Studio only for device builds; Expo Go and the web build need neither
Terminal window
git clone git@github.com:andrewbruno/filocan.git
cd filocan
npm install
npm test # crypto and protocol tests, should print 9 passing
Terminal window
npm run app # Expo dev server
# press w for web, i for iOS simulator, a for Android, or scan the QR with Expo Go

With no .env in apps/app, the app runs against an in-memory relay. Any phone number works, the code is 123456, and a pretend partner called Sam accepts your pairing after four seconds. Everything is still encrypted end to end; there is just no server.

Terminal window
cd supabase
supabase start # Postgres, Auth, Realtime, Studio at :54323
supabase db reset # applies migrations/0001_init.sql

Copy the anon key it prints into apps/app/.env:

EXPO_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
EXPO_PUBLIC_SUPABASE_ANON_KEY=<anon key>

Test phone numbers +61400000001 and +61400000002 accept the code 123456 (see supabase/config.toml). To pair, run the app twice (a simulator and the web build, say), verify a different test number in each, show on one and paste the copied code text into the other.

On a physical device, replace 127.0.0.1 with your machine’s LAN address.

Terminal window
npm run www # http://localhost:4321
npm run docs # http://localhost:4322
npm run build # builds shared, www and docs

The site’s phone screenshots are real app screens, rendered from the web build in demo mode:

Terminal window
npm run export:web -w apps/app # apps/app/dist
npx serve apps/app/dist -l 8090 # any static server
npm run screenshots -w apps/www # writes apps/www/public/screens/*.png
Terminal window
pip install cairosvg fonttools pillow
npm run brand # python3 brand/gen.py

Then copy what changed into apps/app/assets/brand, apps/www/public/brand and apps/docs/public.