Files
poona-ams/README.md
T

73 lines
1.9 KiB
Markdown

# Poona Hospital Asset Management System
![Poona Hospital and Research Centre](frontend/public/logo.jpg)
A centralized Hospital Asset Management and Maintenance System for Poona Hospital and Research Centre.
## Quick Start
### Prerequisites
- Python 3.11+
- Node.js 18+
### Backend
```bash
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
```
- Health check: http://localhost:8000/api/health
- API docs: http://localhost:8000/docs
### Frontend
```bash
cd frontend
npm install
npm run dev
```
- App: http://localhost:5173
### Run both servers (with Make)
```bash
make dev
```
### Run tests
```bash
make test
# Or directly:
cd backend
.venv/Scripts/python -m pytest tests/ -v
```
### Seed demo data (available after Phase 1)
```bash
cd backend
.venv/Scripts/python -m app.seed.seed
```
## Demo Accounts (available after Phase 1)
| 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 0)
- FastAPI backend scaffold with `/api/health` endpoint
- React + TypeScript frontend with full app shell
- Left sidebar with all module links (stubbed pages)
- DataTable component with column filters, sort, pagination, CSV export
- Tailwind CSS + shadcn/ui design system
- 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