A Business-to-Business (B2B) platform designed to connect medical suppliers and medical shopkeepers for efficient medicine distribution, order management, inventory tracking, and customer billing.
The system consists of:
β’ π± Android Mobile Application for Suppliers and Shopkeepers
β’ π Web Admin Panel for user approval and monitoring
β’ βοΈ Firebase Backend for real-time database and authentication
Admin Panel (Web Dashboard):
https://medicalb2b.netlify.app/
The Android application allows suppliers and shopkeepers to interact with the system.
Download the APK from the Releases section of this repository.
This system digitizes the traditional medical distribution workflow between suppliers and medical stores.
It enables:
β’ Suppliers to upload medicines
β’ Shopkeepers to order medicines from suppliers
β’ Shopkeepers to generate customer bills with GST and discounts
β’ Admin to approve users and verify licenses
β’ Real-time tracking of medicine stock
The entire system works using Firebase Realtime Database for instant data synchronization.
β’ Java
β’ Android Studio
β’ XML Layouts
β’ RecyclerView
β’ Firebase Realtime Database
β’ Firebase Authentication
β’ Base64 Image Storage
β’ PDF Invoice Generation
β’ HTML5
β’ CSS3
β’ JavaScript (ES6)
β’ Firebase Realtime Database SDK
β’ Netlify Hosting
β’ Firebase Realtime Database
β’ Firebase Authentication
β’ Firebase Security Rules
Admin manages the entire platform.
Features:
β’ Approve or reject suppliers
β’ Approve or reject shopkeepers
β’ Verify business licenses
β’ Monitor medicines and platform activity
β’ Manage users
Suppliers provide medicines to shopkeepers.
Features:
β’ Register with business license
β’ Wait for admin approval
β’ Upload medicines
β’ Manage medicine inventory
β’ Receive orders from shopkeepers
β’ Accept or reject orders
β’ Track supplier stock
Shopkeepers purchase medicines and sell them to customers.
Features:
β’ Browse supplier medicines
β’ Search medicines
β’ Add medicines to cart
β’ Place supplier orders
β’ Track order status
β’ Maintain shop inventory
β’ Generate customer bills
β’ Apply GST and discounts
β’ Generate PDF invoices
β’ View reorder suggestions
β’ Supplier or Shopkeeper registers
β’ Data stored in:
bills/{billId}
PDF invoice is generated for the customer.
Main database nodes: users suppliers shopkeepers shops supplierOrders bills supplierMedicinesPending approvedMedicines reorders
β’ Firebase Authentication for secure login
β’ Role-based access control
β’ Firebase Security Rules
β’ Admin-only approval operations
β’ Input validation and error handling
β Supplier & Shopkeeper Registration
β Admin Approval System
β Medicine Inventory Management
β B2B Medicine Ordering
β Customer Billing System
β GST & Discount Calculation
β PDF Bill Generation
β Order Tracking
β Reorder Suggestions
β Real-Time Database Updates
β Role-Based Access Control
Medical-Shop-B2B
β
βββ Android-App
β βββ Activities
β β βββ LoginActivity.java
β β βββ RegisterActivity.java
β β βββ AddMedicineActivity.java
β β βββ CartActivity.java
β β βββ OrderDetailsActivity.java
β β
β βββ Adapters
β β βββ MedicineAdapter.java
β β βββ SupplierCartAdapter.java
β β βββ OrderAdapter.java
β β
β βββ Models
β β βββ Medicine.java
β β βββ CartItem.java
β β βββ Order.java
β β βββ User.java
β β
β βββ Utils
β β βββ MedicineKeyUtil.java
β β βββ SupplierCartManager.java
β β βββ PdfInvoiceGenerator.java
β β
β βββ Firebase
β βββ FirebaseAuthHelper.java
β βββ FirebaseDatabaseHelper.java
β
βββ Admin-Web-Panel
β βββ index.html
β βββ dashboard.html
β βββ approvals.js
β βββ medicines.js
β βββ analytics.js
β βββ auth.js
β βββ style.css
β
βββ Firebase
β βββ database.rules.json
β βββ firebase-config.js
β
βββ README.md
β’ AI-based medicine demand prediction
β’ Barcode scanning for medicines
β’ Online payment integration
β’ Multi-store analytics
β’ Supplier rating system