Skip to content
Wasel icon

Mobile · Android and web

Wasel

Run it yourself

Wasel is built with Expo (React Native) for the phone and browser, and Supabase for accounts, data, files and live updates. This page is for developers who have the source code.

  • Node.js 22.13 or newer, and Git
  • The Expo Go app on an Android phone (from the Play Store)
  • Your phone and computer on the same Wi-Fi network
  • A free Supabase project

In the project folder:

Terminal window
npm install
  1. Create a project at supabase.com. Copy .env.example to .env and fill in the project URL and the anon (publishable) key. Never put the service-role key in this file.
  2. In the SQL Editor, paste each file from supabase/migrations/ in number order (0001 to 0010) and run it.
  3. In Authentication > Users, create the four demo users (one citizen and three agents) with a password of your choice and Auto Confirm User ticked. The emails are listed in the project’s README.
  4. In the SQL Editor, paste supabase/seed.sql and run it. This adds the services, the centres and the citizen’s welcome notifications.
  5. In Authentication > Sign In / Providers, turn off Allow new users to sign up, so only the demo accounts exist.
Terminal window
npx expo start
  • Phone: open Expo Go and scan the QR code in the terminal.
  • Browser: press w, or open http://localhost:8081.
  • Stop: press Ctrl + C.

Paste supabase/reset_demo_tickets.sql into the SQL Editor and run it. It clears every ticket and adds three completed, rated examples. Then follow the Demo tour.

Terminal window
npm run typecheck
Terminal window
npm run build:web

The first checks the TypeScript code; the second builds the web version into dist.

The phone can’t connect to the dev server. Make sure both are on the same Wi-Fi, or start with a tunnel instead (slower, but works across networks):

Terminal window
npx expo start --tunnel

A live update didn’t arrive. Updates normally show within a second. If one doesn’t, go back and open the screen again.

Sign-in fails. Check that the demo users were created with Auto Confirm User ticked, and that .env has the right URL and key. Restart npx expo start after changing .env.

No sound or phone alerts. Allow notifications when the phone asks, turn the phone’s volume up, and check the mute switch in the app.

Ask doesn’t understand my question. Ask matches words, not meaning, so unusual wording can miss. It then says it can’t verify an answer instead of guessing.