Tech Stack
Backend
| Package | Version | Purpose |
|---|---|---|
| Python | ≥ 3.12 | Language |
| FastAPI | ≥ 0.121 | Web framework |
| SQLAlchemy | ≥ 2.0 | ORM |
| Alembic | ≥ 1.17 | Database migrations |
| psycopg2-binary | ≥ 2.9 | PostgreSQL driver |
| OpenAI SDK | ≥ 2.7 | AI order parsing |
| reportlab | ≥ 4.0 | PDF generation |
| pdf2image | ≥ 1.17 | PDF to image conversion |
| Poetry | — | Dependency management |
Frontend
| Package | Version | Purpose |
|---|---|---|
| React | 19.2.0 | UI framework |
| TypeScript | 5.9.3 | Type safety |
| Vite | 7.2.2 | Build tool |
| Tailwind CSS | 4.1.17 | Styling |
| React Router DOM | 7.9.5 | Client-side routing |
| Zustand | 5.0.8 | State management |
| Axios | 1.13.2 | HTTP client |
| Lucide React | 0.553.0 | Icons |
Environment Setup
Backend — backend/.env
Frontend — .env
http://localhost:8000.
Running the App
Backend
API available at http://localhost:8000
Swagger UI at http://localhost:8000/docs
Frontend
Frontend available at http://localhost:5173
Running Tests
test_bank_routes.pytest_bullion_routes.pytest_client_routes.pytest_karigar_routes.pytest_polisher_routes.pytest_client_order_routes.pytest_calculations.pytest_services.py