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.
What you need
Section titled “What you need”- 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
1. Install
Section titled “1. Install”In the project folder:
npm install2. Set up Supabase (once)
Section titled “2. Set up Supabase (once)”- Create a project at supabase.com. Copy
.env.exampleto.envand fill in the project URL and the anon (publishable) key. Never put the service-role key in this file. - In the SQL Editor, paste each file from
supabase/migrations/in number order (0001 to 0010) and run it. - 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.
- In the SQL Editor, paste
supabase/seed.sqland run it. This adds the services, the centres and the citizen’s welcome notifications. - In Authentication > Sign In / Providers, turn off Allow new users to sign up, so only the demo accounts exist.
3. Run
Section titled “3. Run”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.
Before a demo
Section titled “Before a demo”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.
Useful checks
Section titled “Useful checks”npm run typechecknpm run build:webThe first checks the TypeScript code; the second builds the web version into dist.
Troubleshooting
Section titled “Troubleshooting”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):
npx expo start --tunnelA 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.