Ekub Hub Frontend is the client-side mobile application for the Ekub Hub platform, built with Flutter for cross-platform support (iOS and Android).
It enables users to authenticate, search for Ekub groups using geolocation & filters, join groups, and manage their participation in a smooth, user-friendly interface.
The app integrates with Firebase Authentication and communicates with the Node.js backend via REST APIs.
- 🔐 User login/signup via Firebase Authentication (email/password)
- 📍 Geolocation-based search for Ekub groups using device location
- 👥 Display and join groups with real-time updates
- ⚙️ Customizable filters (contribution amount, distance, etc.)
- 🎨 Responsive UI with Material Design principles
- 🚀 Flutter (Dart) for cross-platform development
- 🔑 Firebase Core & Auth for authentication
- 🌍 HTTP for API requests to the backend
- 📌 Geolocator for device location services
- 🧩 Provider / Riverpod for state management (basic implementation expandable)
Before running the app, ensure you have:
- ✅ Flutter SDK installed
- ✅ Android Studio or Xcode for emulators/devices
- ✅ Firebase project set up with Authentication enabled
- ✅ Firebase configuration files added:
- Android:
android/app/google-services.json - iOS:
ios/Runner/GoogleService-Info.plist
- Android:
- Clone the repository
git clone <repository-url> ekub_hub cd ekub_hub
Install dependencies
bash Copy code flutter pub get Configure Firebase
Follow FlutterFire setup guide
Enable Email/Password authentication in Firebase console
bash Copy code flutter run On first launch
Log in with email/password (or sign up via Firebase)
Grant location permissions for geolocation search
Navigate to the search screen to discover & join Ekub groups
📂 Directory Structure bash Copy code lib/ ├── main.dart # Entry point with Firebase initialization ├── models/ # Data models (e.g., ekub_group.dart) ├── screens/ # UI screens (login, home, search, etc.) ├── services/ # API & Firebase services (e.g., api_service.dart) └── widgets/ # Reusable UI components 🧩 Key Components 🔑 Authentication: login_screen.dart with FirebaseAuth
🌐 API Integration: api_service.dart fetches Firebase tokens & calls backend APIs
📍 Geolocation: search_screen.dart uses Geolocator to find nearby groups
🎨 UI: Lists groups via ListView + join buttons triggering API requests
📜 Permissions ✅ Android android/app/src/main/AndroidManifest.xml
xml Copy code ✅ iOS ios/Runner/Info.plist
xml Copy code NSLocationWhenInUseUsageDescription This app requires your location to find nearby Ekub groups. 🧪 Testing Run unit tests: bash Copy code flutter test UI tests: Flutter Driver or integration tests
Manual tests on emulators/real devices
Ensure backend is running locally & update baseUrl in api_service.dart if needed e.g.(emulator/device)..
🚀 Deployment Build for Android
bash Copy code flutter build apk Build for iOS
bash Copy code flutter build ios (requires macOS & Xcode)
Update backend URL in api_service.dart to production (e.g., https://your-domain.com) before publishing.
Publish to Google Play / App Store.
🤝 Contributing Contributions are welcome!
Fork the repo 🍴
Create a feature branch 🌱
Submit a pull request 🚀