Spaces:
Sleeping

keyvault-api / README.md
hashir-qt's picture
Upload folder using huggingface_hub
e656014 verified
|
Raw History Blame Contribute Delete
1.07 kB
---
title: KeyVault Marketplace API
emoji: πŸ›’
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
---
# KeyVault Digital Marketplace β€” Backend API
FastAPI backend for the KeyVault multi-vendor digital goods marketplace.
## Endpoints
- `GET /health` β€” health check
- `GET /docs` β€” interactive Swagger UI
- `/api/v1/auth/*` β€” register, login, me
- `/api/v1/products/*` β€” product catalog
- `/api/v1/store/*` β€” storefront (browse, categories)
- `/api/v1/orders/*` β€” order management
- `/api/v1/seller/*` β€” seller dashboard
- `/api/v1/admin/*` β€” admin panel
## Environment Variables (set as Space Secrets)
| Variable | Description |
|----------|-------------|
| `DATABASE_URL` | PostgreSQL connection string (`postgresql+asyncpg://...`) |
| `JWT_SECRET` | Secret key for JWT signing |
| `JWT_ALGORITHM` | `HS256` |
| `JWT_EXPIRY_HOURS` | `24` |
| `ENCRYPTION_KEY` | 32-char key for product key encryption |
| `ALLOWED_ORIGINS` | Comma-separated list of allowed frontend URLs |
| `APP_ENV` | `production` |
| `DEBUG` | `false` |