Files
poona-ams/README.md
T

2.2 KiB

Poona Hospital Asset Management System

Poona Hospital and Research Centre

A centralized Hospital Asset Management and Maintenance System for Poona Hospital and Research Centre.

Quick Start

Prerequisites

  • Python 3.11+
  • Node.js 18+

Backend

cd backend
python -m venv .venv
# Windows PowerShell: .venv\Scripts\Activate.ps1
# macOS/Linux: source .venv/bin/activate
.venv/Scripts/pip install -r requirements.txt  # or pip install -r requirements.txt once activated
.venv/Scripts/uvicorn app.main:app --reload --port 8000

Frontend

cd frontend
npm install
npm run dev

Run both servers (with Make)

make dev

Run tests

make test
# Or directly:
cd backend
.venv/Scripts/python -m pytest tests/ -v

Seed demo data

cd backend
.venv/Scripts/python -m app.seed.seed

Demo Accounts

Email Password Role
admin@poona.demo Demo@123 System Admin
bio@poona.demo Demo@123 Biomedical
dept@poona.demo Demo@123 Department User (ICU)
mgmt@poona.demo Demo@123 Management
coord@poona.demo Demo@123 Coordinator

What exists now (Phase 1)

  • Complete SQLAlchemy 19-table data model across masters, assets, maintenance, complaints, operations, and system modules
  • JWT authentication (/api/auth/login, /api/auth/me), RBAC permission matrix for 5 roles, and Quick Demo Login
  • Admin Master Lists CRUD (/masters: Departments, Locations, Categories, Vendors, Users)
  • Typed System Settings (/settings) and TopBar "As of Date" Demo Clock (POST /api/settings/demo-date)
  • Idempotent deterministic seed script (python -m app.seed.seed) populating realistic hospital demo data
  • React + TypeScript frontend app shell with role-filtered sidebar, route guards, DataTable, and Tailwind CSS + shadcn/ui
  • Makefile for common tasks

Modules (all phases)

Phase 0: Scaffold | Phase 1: Auth & Masters | Phase 2: Assets | Phase 3: Complaints Phase 4: PM & Calibration | Phase 5: Contracts, Warranty, Insurance, Demo, Visits Phase 6: Notifications & Dashboard | Phase 7: Reports | Phase 8: Polish