2.4 KiB
2.4 KiB
Sankofa HW Infra
Hardware procurement, inventory, and operations platform for sovereign cloud operations: offer intake, inspection workflows, purchasing controls, asset lifecycle, multi-site management, and integrations. UniFi is used as a hardware-aware, compliance-relevant infrastructure layer (product intelligence, support horizon, per-sovereign controller topology). See docs/architecture.md, docs/integration-spec-unifi.md, and docs/sovereign-controller-topology.md.
Stack
- Monorepo: pnpm workspaces
- API: Fastify (Node), REST
/api/v1, JWT + RBAC/ABAC - Web: React + Vite
- DB: PostgreSQL (Drizzle), S3-compatible object storage
- Workflow: Embedded state machines (PO approval, inspection)
Quick start
- Copy
env.exampleto.envand setDATABASE_URL, optionalS3_*,JWT_SECRET. - Start Postgres:
cd infra && docker compose up -d - Migrate:
pnpm db:migrate - Install:
pnpm install - API:
pnpm --filter @sankofa/api run dev(port 4000) - Web:
pnpm --filter @sankofa/web run dev(port 3000)
Scripts
pnpm run build— build all packagespnpm run test— run testspnpm run lint— lintpnpm db:migrate— run DB migrations
Docs
- Architecture
- ERD
- OpenAPI
- RBAC sovereign operations, Compliance profiles
- CI/CD
- Integration specs, Proxmox, Redfish
- Purchasing feedback loop, Sovereign controller topology
- Capacity dashboard spec (RU utilization, power headroom, GPU inventory; UI at
/capacity) - Operational baseline (current hardware in-hand; see data/operational-baseline-hardware.json for structured import)
- Vendor portal (vendor user login, scoped offers/POs), Offer ingestion (scrape + email intake)
- Next steps before Swagger and UI
- Runbooks