Initial: Nutshell Site Aggregator MVP Phase 1

- Backend: Express + TypeORM + PostgreSQL, JWT + OTP auth
- Frontend: React + Vite + Tailwind, 4 pages (Home/Login/Orders/404)
- Docker Compose: PostgreSQL 15 on port 5434
- Tests: 16 tests passing (API + Frontend)
- ai_state: rules.md, INSTRUCTIONS.md, session tasks
- Examples: brand book PDF, logos, page mockups
This commit is contained in:
2026-07-16 11:38:08 +04:00
commit 4420c5c60a
73 changed files with 11088 additions and 0 deletions

35
Tests/run_tests.bat Normal file
View File

@@ -0,0 +1,35 @@
@echo off
chcp 65001 >nul
echo.
echo ============================================
echo Nutshell Site — Полный прогон тестов
echo ============================================
echo.
echo Убедитесь, что запущены:
echo 1. PostgreSQL Docker: docker-compose up -d postgres
echo 2. Backend: cd backend ^&^& npm run dev
echo 3. Frontend: cd frontend ^&^& npm run dev
echo.
echo ─────────────────────────────────────────────
echo Блок 1: API-тесты (backend :3001)
echo ─────────────────────────────────────────────
node Tests\api_tests.mjs
if %ERRORLEVEL% neq 0 (
echo.
echo [FAIL] API-тесты провалены. Остановка.
exit /b 1
)
echo.
echo ─────────────────────────────────────────────
echo Блок 2: Frontend-тесты (Vite :3000)
echo ─────────────────────────────────────────────
node Tests\frontend_tests.mjs
if %ERRORLEVEL% neq 0 (
echo.
echo [FAIL] Frontend-тесты провалены.
exit /b 1
)
echo.
echo ============================================
echo ВСЕ ТЕСТЫ ПРОШЛИ УСПЕШНО
echo ============================================