Разбить API на модули и перевести комментарии на русский

This commit is contained in:
celis
2026-10-29 22:26:25 +03:00
parent c4f9eb7648
commit e8ba028b89
29 changed files with 630 additions and 456 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
# Node 24 runs .ts directly (type stripping), so there is no build step; `npm run typecheck` checks types.
# Node 24 исполняет .ts напрямую (type stripping), отдельной сборки нет; типы проверяет `npm run typecheck`.
FROM node:24.22.2-alpine3.24
WORKDIR /app
ENV NODE_ENV=production
@@ -7,5 +7,5 @@ RUN npm ci --omit=dev && npm cache clean --force
COPY src ./src
USER node
EXPOSE 8080
# node is PID 1 and handles SIGTERM itself (graceful drain in src/main.ts).
# node работает как PID 1 и сам обрабатывает SIGTERM (graceful shutdown в src/main.ts).
CMD ["node", "src/main.ts"]