Этап 1: каркас монорепо, Docker Compose, Prisma-схема, healthcheck

- pnpm workspaces: apps/web, apps/api, packages/md, packages/shared
- docker compose: db (PostgreSQL 16), api, web (nginx)
- Prisma-схема и первая миграция (pg_trgm, GIN-индексы поиска)
- GET /api/health, ESLint + Prettier, .env.example, README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deonisii
2026-10-04 12:09:44 +03:00
co-authored by Claude Opus 5.5
parent 9ed4d4ce43
commit 521533a8e3
37 changed files with 9290 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
{
"name": "@kb/md",
"version": "0.1.0",
"private": true,
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"typecheck": "tsc -p tsconfig.json",
"test": "vitest run"
},
"dependencies": {
"hast-util-to-string": "^3.0.1",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-directive": "^4.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"unified": "^11.0.5",
"unist-util-visit": "^5.1.0"
},
"devDependencies": {
"@types/hast": "^3.0.5",
"@types/mdast": "^4.0.4",
"typescript": "^5.9.0",
"vitest": "^5.0.3"
}
}
+2
View File
@@ -0,0 +1,2 @@
// Общий Markdown-рендер (сервер + клиент). Наполняется на этапе 2.
export const MD_PACKAGE = '@kb/md';
+1
View File
@@ -0,0 +1 @@
{ "extends": "../../tsconfig.base.json", "include": ["src"] }