A modern, real-time hospital bed management platform that gives healthcare networks a unified command center for bed availability, patient flow, admissions, discharges, and staff coordination.
| Module | Description |
|---|---|
| ποΈ Bed Management | Real-time ward inventory with occupancy heatmaps |
| π€ Patient Registry | Full patient lifecycle from intake to discharge |
| π Admissions | Structured intake with bed assignment and approval flows |
| π Discharge Flow | 4-step discharge checklist with logistics & sign-off |
| π Notifications | Priority-based alert center with emergency broadcast |
| π Analytics | Admissions history, flow dynamics, department charts |
| π’ Hospital Network | Multi-facility map with live inter-hospital transfers |
| π₯ Staff Roster | Workforce scheduling and credential management |
| π§ Maintenance Queue | Bed maintenance tracking and status updates |
| π Role-based Access | User / Hospital Admin / Admin / Superadmin tiers |
| π Dark Mode | Full light/dark theme with persisted preference |
| π± Responsive | Works on desktop, tablet, and mobile |
- Frontend: React 19, React Router 7, Framer Motion
- Styling: Tailwind CSS 3 + custom CSS design tokens (Material 3 color system)
- Charts: Chart.js + react-chartjs-2
- Backend / Auth: Firebase Authentication + Firestore
- Build tool: Vite 8
- Deployment: Firebase Hosting
- Node.js 18+ and npm 9+
- A Firebase project with Authentication and Firestore enabled
git clone https://github.com/dr5t/bedmgmt.git
cd bedmgmtnpm installcp .env.example .envEdit .env and fill in your Firebase project credentials:
VITE_FIREBASE_API_KEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.firebasestorage.app
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id
VITE_FIREBASE_MEASUREMENT_ID=G-XXXXXXXXXXnpm run devThe app will be available at http://localhost:5173.
| Role | Access |
|---|---|
user |
Dashboard, Patient Locator, Notifications, Help, Settings |
hospital_admin |
All user routes + clinical, bed, asset management |
admin |
All hospital_admin routes + System Admin, Audit Logs, Approvals, API Docs |
superadmin |
Full access to all routes and actions |
bedmgmt/
βββ public/ # Static assets
βββ src/
β βββ components/
β β βββ DashboardLayout.jsx # Sidebar + header shell
β β βββ SkeletonLoader.jsx
β βββ context/
β β βββ AuthContext.jsx # Firebase auth state + login/register logic
β βββ pages/ # One component per route (35+ pages)
β βββ services/ # Firebase service helpers
β βββ hooks/ # Custom React hooks
β βββ utils/ # Shared utilities
β βββ styles/ # Extra CSS modules
β βββ firebase.js # Firebase app initialization
β βββ App.jsx # Router + lazy-loaded routes
β βββ index.css # Global design tokens + Tailwind layers
β βββ main.jsx # Entry point
βββ .env.example # Environment variable template
βββ .gitignore
βββ firebase.json # Firebase Hosting config
βββ tailwind.config.js
βββ vite.config.js
βββ package.json
| Command | Description |
|---|---|
npm run dev |
Start development server with HMR |
npm run build |
Production build to dist/ |
npm run preview |
Serve the production build locally |
npm run lint |
Run ESLint on the entire codebase |
npm run build
npx firebase deploy --only hostingOr use the Firebase CLI:
npx firebase login
npx firebase init hosting
npm run build
npx firebase deploy- Fork the repository
- Create a feature branch:
git checkout -b feature/AmazingFeature - Commit your changes:
git commit -m 'Add AmazingFeature' - Push to the branch:
git push origin feature/AmazingFeature - Open a Pull Request
Please read SECURITY.md before submitting any security-related issues.
Distributed under the MIT License. See LICENSE for more information.
Shaurya Tiwari β @dr5t