fix: reopen clears restored_at, wire settings, docs, startup warning
This commit is contained in:
@@ -14,10 +14,14 @@ A centralized Hospital Asset Management and Maintenance System for Poona Hospita
|
||||
```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
|
||||
|
||||
# Windows PowerShell:
|
||||
.venv\Scripts\activate
|
||||
# macOS/Linux:
|
||||
# source .venv/bin/activate
|
||||
|
||||
pip install -r requirements.txt
|
||||
python -m uvicorn app.main:app --reload --port 8000
|
||||
```
|
||||
- Health check: http://localhost:8000/api/health
|
||||
- API docs: http://localhost:8000/docs
|
||||
@@ -37,9 +41,9 @@ make dev
|
||||
|
||||
### Run tests
|
||||
```bash
|
||||
# Backend
|
||||
# Backend (activate .venv first: Windows .venv\Scripts\activate | macOS/Linux source .venv/bin/activate)
|
||||
cd backend
|
||||
.venv/Scripts/python -m pytest tests/ -v
|
||||
python -m pytest tests/ -v
|
||||
# Or via Make: make test
|
||||
|
||||
# Frontend (build + Vitest)
|
||||
@@ -50,8 +54,9 @@ npm test
|
||||
|
||||
### Seed demo data
|
||||
```bash
|
||||
# Activate .venv first: Windows .venv\Scripts\activate | macOS/Linux source .venv/bin/activate
|
||||
cd backend
|
||||
.venv/Scripts/python -m app.seed.seed
|
||||
python -m app.seed.seed
|
||||
# Or via Make: make seed
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user