Commit Graph
16 Commits
Author SHA1 Message Date
arswarog c824a7675b profile: seed visit card on startup
CI / Сборка (push) Successful in 1m58s
CI / Деплой на стейджинг (push) Failing after 49s
CI / Проверка кода (push) Successful in 18s
- seed-data.json с данными визитки
- ProfileSeeder: пустая таблица Profile — признак незасеянной БД,
  вложенный create кладёт профиль и связи одной транзакцией
- JSON копируется в dist через assets, чтобы работал и в docker-образе
2026-11-18 10:00:23 +03:00
arswarog bc98a41614 profile: dto, prisma access, resolver with dataloaders
- PrismaModule/PrismaService на pg-адаптере (Prisma 7 без движка запросов)
- DTO профиля и связей; служебные id/profileId не публикуются в GraphQL
- ProfileService — единственное место запросов к БД
- DataLoader'ы на каждый запрос: 1 SQL на профиль + по 1 на затронутую связь
- GraphQLModule.forRootAsync кладёт лоадеры в контекст
- клиент Prisma генерируется в src/, иначе сборка с rootDir src не видит его
- DATABASE_URL для api-контейнера собирается в docker-compose
2026-11-18 10:00:15 +03:00
arswarog bc135b8811 ci: apply migrations before starting staging containers 2026-11-18 10:00:15 +03:00
arswarog bd736fb67e prisma: profile tables with init migration 2026-11-18 10:00:15 +03:00
arswarog 2dc01cc886 docs: test assignment description and design decisions 2026-11-18 10:00:15 +03:00
arswarog 18e4a97691 ci: force corepack install to bypass pnpx EEXIST collision
runner image ships pnpm/pnpx alongside yarn 1.22.22 and lacks corepack;
npm install -g corepack failed with EEXIST on /usr/local/bin/pnpx
2026-11-16 17:30:51 +03:00
arswarog 25de4ad823 deploy: staging single-container via host caddy-docker-proxy
- drop caddy/SSL in container (staging only): api service gets caddy labels,
  host caddy terminates TLS and routes ${BRANCH}.it-smi.jt4d.ru.net -> :5000
- simplify Dockerfile to single-stage, healthcheck -> /, .dockerignore
- pin packageManager yarn@4.18.0 and use corepack: project is Yarn 4 (berry
  lockfile), base image and CI runner ship Yarn 1 and failed on install
- rewrite ci.yaml/cleanup.yaml for flat project (single api image, no Nx)
2026-11-16 17:30:51 +03:00
arswarog 7d8a583f11 profile: guery profile (minimal) 2026-11-16 17:30:51 +03:00
arswarog 67542ec94c profile: create module structure 2026-11-16 17:30:51 +03:00
arswarog a41cb50128 graphql: add graphql 2026-11-16 17:30:51 +03:00
arswarog e43db517d9 db: prisma init 2026-11-16 17:30:51 +03:00
arswarog 414e7b8a37 all: install prisma 2026-11-16 17:30:51 +03:00
arswarog b3bbbf2810 chore: prettier 2026-11-16 17:26:19 +03:00
arswarog cac80fe476 app: remove @nestjs/observe 2026-11-13 19:16:21 +03:00
arswarog b1e3b43c70 yarn: nodeLinker node-modules 2026-11-13 19:15:27 +03:00
arswarog d03d0ea51f Initial commit 2026-11-13 19:15:25 +03:00