init: M1 scaffolding + M2 organization/clients/services CRUD

- monorepo (npm workspaces): apps/api (Fastify+Prisma+TS), apps/web (Vite+React+TS), packages/shared (zod schemas)
- SSO via auth.queo.ru: jose+JWKS plugin, requireDocPermission(viewer|user|admin)
- DEV_BYPASS_AUTH for local development (hard-checked off in production)
- M2: organization upsert, clients CRUD with search, services catalog with soft-delete
- BigInt -> Number serializer for Prisma money columns
- Embedded Postgres + npm run dev:demo for one-command local boot
- Docker compose for queoserver: postgres + api + web (nginx as ingress proxying /api -> api:3030)
- First migration 0_init committed (prisma migrate diff)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
admin
2026-04-30 21:24:26 +03:00
commit 4553f63deb
52 changed files with 7110 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{
"name": "doc-manager",
"private": true,
"version": "0.0.0",
"description": "Контракты, счета и акты с интеграцией банка Точка. Часть экосистемы Queo.",
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"dev": "npm run dev --workspaces --if-present",
"dev:api": "npm run dev -w @doc-manager/api",
"dev:web": "npm run dev -w @doc-manager/web",
"dev:demo": "concurrently --names api,web --prefix-colors blue,green \"npm:dev:demo:api\" \"npm:dev:web\"",
"dev:demo:api": "npm run dev:demo -w @doc-manager/api",
"build": "npm run build --workspaces --if-present",
"typecheck": "npm run typecheck --workspaces --if-present",
"prisma:generate": "npm run prisma:generate -w @doc-manager/api",
"prisma:migrate": "npm run prisma:migrate -w @doc-manager/api"
},
"engines": {
"node": ">=20"
},
"devDependencies": {
"concurrently": "^9.2.1"
}
}