Skip to content

Tejas03-mL/B2B

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ Medical Shop B2B Management System

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


🌐 Live Admin Dashboard

Admin Panel (Web Dashboard):
https://medicalb2b.netlify.app/


πŸ“± Android Application

The Android application allows suppliers and shopkeepers to interact with the system.

Download the APK from the Releases section of this repository.


πŸš€ Project Overview

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.


πŸ›  Technology Stack

πŸ“± Android Application

β€’ Java
β€’ Android Studio
β€’ XML Layouts
β€’ RecyclerView
β€’ Firebase Realtime Database
β€’ Firebase Authentication
β€’ Base64 Image Storage
β€’ PDF Invoice Generation


🌐 Admin Panel (Web Dashboard)

β€’ HTML5
β€’ CSS3
β€’ JavaScript (ES6)
β€’ Firebase Realtime Database SDK
β€’ Netlify Hosting


βš™ Backend Services

β€’ Firebase Realtime Database
β€’ Firebase Authentication
β€’ Firebase Security Rules


πŸ‘₯ User Roles

πŸ§‘β€πŸ’Ό Admin

Admin manages the entire platform.

Features:

β€’ Approve or reject suppliers
β€’ Approve or reject shopkeepers
β€’ Verify business licenses
β€’ Monitor medicines and platform activity
β€’ Manage users


🚚 Supplier

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


πŸͺ Shopkeeper

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


πŸ” System Workflow

Step 1 β€” Registration

β€’ Supplier or Shopkeeper registers
β€’ Data stored in: bills/{billId} PDF invoice is generated for the customer.


πŸ“Š Firebase Database Structure

Main database nodes: users suppliers shopkeepers shops supplierOrders bills supplierMedicinesPending approvedMedicines reorders

πŸ” Security Features

β€’ Firebase Authentication for secure login
β€’ Role-based access control
β€’ Firebase Security Rules
β€’ Admin-only approval operations
β€’ Input validation and error handling


πŸ“¦ Key Features

βœ” 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


πŸ“ Project Structure

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

πŸ“ˆ Future Improvements

β€’ AI-based medicine demand prediction
β€’ Barcode scanning for medicines
β€’ Online payment integration
β€’ Multi-store analytics
β€’ Supplier rating system


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors