Local Setup¶
Prerequisites¶
| Tool | Version | Purpose |
|---|---|---|
| Flutter | 3.x | Mobile app |
| Dart | 3.x | Flutter language |
| Node.js | 18.x+ | React web apps |
| npm / yarn | latest | Package management |
| Git | latest | Version control |
| Supabase CLI | latest | Local Supabase |
| Docker | latest | Supabase local |
Mobile (Flutter)¶
# Clone
git clone https://github.com/anomalyco/pharmanet.git
cd pharmanet
# Install dependencies
flutter pub get
# Generate code (freezed, json_serializable, riverpod_generator)
dart run build_runner build --delete-conflicting-outputs
# Run
flutter run
Web Apps¶
Admin Web¶
Seller Web¶
Environment Variables¶
Flutter¶
Create pharmanet/.env:
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key
CHAPA_SECRET_KEY=your-chapa-key
Web Apps¶
Both web apps use .env.local:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
CHAPA_SECRET_KEY=your-chapa-key
NEXT_PUBLIC_APP_URL=http://localhost:3000
Related¶
- Database Setup — Set up Supabase locally
- Architecture — System design overview