⚡ Immediate Reorder Recommendations
| Chemical | Current Stock | Min / Max | Reorder Qty | Action |
|---|---|---|---|---|
| No urgent reorders required. | ||||
🚨 Critical Lab Alerts
🧪 Simulated Chemical Inventory Database
| Chemical | Category | Quantity | Unit | Min / Max | Expiry Date | Storage | Status | Recommended Order | Actions |
|---|---|---|---|---|---|---|---|---|---|
| Loading simulated laboratory inventory from Cloud Firestore... | |||||||||
⚡ Supply Intelligence & Automated Reorder Generator
Algorithm: recommendedOrder = Math.max(0, maximumStock - currentQuantity) when stock falls below minimum threshold.
| Chemical | Status | Current Stock | Min Threshold | Max Target | Stock Deficit | Recommended Reorder | Assigned Supplier | Procurement Action |
|---|---|---|---|---|---|---|---|---|
| No reorders needed. | ||||||||
🚨 Inventory Intelligence Alerts Feed
Real-time rule engine alerts triggered on Low Stock, Critical Stock (<50% Min), and Expiry (<30 days).
No active alerts.
📜 Stock Movement Audit Ledger
Immutable audit log of all simulated Stock-IN (Restock/Procurement) and Stock-OUT (Lab Consumption) transactions.
| Timestamp | Transaction ID | Chemical Name | Type | Quantity | Experiment / Audit Notes |
|---|---|---|---|---|---|
| No transactions recorded yet. | |||||
🏢 Simulated Chemical Suppliers Network
Registered educational laboratory suppliers and vendor ratings.
☁️ Cloud Architecture & ₹0 Spark Plan Design
This micro-project demonstrates serverless cloud computing principles using Google Firebase at ₹0 cost without needing a credit card or billing account.
💡 Why This Design Succeeds in a Viva:
- Zero Server Maintenance: No Node.js or Python backend servers to deploy, monitor, or pay for.
- ₹0 Budget Compliance: Fits 100% within the free Firebase Spark plan limits (50k daily Firestore reads, 20k daily writes).
- No Cloud Functions Required: Inventory intelligence formulas (Critical threshold, Expiry warnings, Reorder quantities) execute client-side in Vanilla JS, avoiding the paid Blaze plan mandate for Cloud Functions.
- Real-time Synchronous Updates: Firestore's
onSnapshot()listener pushes live inventory updates instantly to all connected browser tabs.
🎓 Top Viva Questions & Answers for Demonstrations
requestedQuantity <= currentQuantity before committing the change to Firestore. If requested amount exceeds current stock, the operation is blocked with an error toast.
currentQuantity < minimumStock, the system calculates recommendedOrder = maximumStock - currentQuantity. If stock is at or above maximum target, recommended order evaluates to 0.
expiryDate and today. If <= 30 days, it displays an EXPIRING_SOON warning badge and dispatches an alert in the feed without mutating the chemical's inventory stock level balance.