refactor: update project structure

This commit is contained in:
TAskMAster339
2026-09-25 20:17:56 +03:00
parent 7f7b0c0ce0
commit a9dda20540
62 changed files with 4273 additions and 1764 deletions
+29
View File
@@ -29,6 +29,35 @@ services:
interval: 5s
timeout: 3s
retries: 20
backend-tests:
profiles: ["test"]
build:
context: .
target: builder
environment:
TEST_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable
depends_on:
db:
condition: service_healthy
command: ["go", "test", "-race", "-count=1", "-v", "./src/backend/..."]
frontend:
build:
context: ./src/frontend
environment:
API_PROXY_TARGET: http://api:8080
ports:
- "127.0.0.1:5173:5173"
volumes:
- ./src/frontend:/app
- /app/node_modules
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:5173/').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 5s
timeout: 3s
retries: 20
volumes:
postgres_data: