A modern, glass-UI hospital drug inventory system with role-based access, IoT temperature simulation, FEFO-based expiry tracking, real-time alerts, and AI-style demand forecasting. Fully front-end (HTML/CSS/JS) and runs instantly in any browser using localStorage.
🚀 Features
🔐 Role-Based Login (Admin, Pharmacist, Department User)
🏥 Department Filtering (Cardiology, Pharmacy, General Medicine)
📦 Drug Inventory Management (CRUD + barcode search)
Low stock
Expiring soon (FEFO)
Temperature out-of-range
🌡 IoT Simulation
Drug temperature changes every 5 seconds
📊 AI Demand Forecasting
Chart.js based prediction
💾 localStorage Database (no backend required)
🎨 Modern Glassmorphism UI
📁 Project Structure
/index.html - Login / Signup page
/dashboard.html - Main application dashboard
/style.css - Modern glassmorphism design
/script.js - All app logic (login, CRUD, IoT, alerts, charts)
/departments.js - Sample data (users, drugs, departments)
🧪 Demo Credentials
Role Email Password
Admin admin@hospital.local
admin123
Pharmacist pharma@hospital.local
pharma123
Dept User cardio@hospital.local
cardio123
Download or clone the repository
Open index.html in any browser (Chrome recommended)
Log in using demo credentials
App runs entirely offline — no backend needed