Solution: The package was renamed. It's now @xyflow/react.
The package.json has been updated. Run:
cd frontend
npm install --legacy-peer-depsOr use the fallback setup:
.\setup_fallback.batSolution: This was fixed by adding the missing --reload argument.
Run again:
.\setup_auto.ps1Or manually generate the .env:
cd backend
python scripts\generate_env.pySolution: Use legacy peer deps mode:
cd frontend
npm install --legacy-peer-depsSolution:
# Start PostgreSQL service
net start postgresql
# Or check if it's installed
where psqlIf not installed, download from: https://www.postgresql.org/download/windows/
Solution:
# Start Redis service
net start Redis
# Or check if installed
where redis-cliIf not installed, download from: https://github.com/microsoftarchive/redis/releases
Create backend\.env with:
APP_ENV=development
APP_DEBUG=true
APP_URL=http://localhost:8000
SECRET_KEY=dev-secret-key-change-in-production
DATABASE_URL=postgresql://document_user:document_pass@localhost:5432/document_analyzer
REDIS_URL=redis://localhost:6379
ENCRYPTION_KEY=c2VjcmV0LWtleS1mb3ItZGV2ZWxvcG1lbnQtb25seQ==
JWT_SECRET_KEY=dev-jwt-secret-change-in-production
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
GROQ_API_KEY=Create frontend\.env.local with:
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_WS_URL=ws://localhost:8000
NEXT_PUBLIC_ENABLE_WEBSOCKET=true# Backend
cd backend
poetry install
# Frontend
cd frontend
npm install --legacy-peer-depscd backend
poetry run alembic upgrade headIf the main setup fails, use the fallback:
.\setup_fallback.batThis script:
- Creates .env files manually
- Handles errors gracefully
- Provides clear instructions
- Works even if services are missing
After setup, verify:
# Check .env exists
test-path backend\.env
test-path frontend\.env.local
# Check dependencies
cd backend
poetry show
cd ..\frontend
npm list --depth=0# Terminal 1 - Backend
cd backend
poetry run uvicorn app.main:app --reload
# Terminal 2 - Frontend
cd frontend
npm run devAccess:
- Frontend: http://localhost:3000
- API Docs: http://localhost:8000/docs
- Setup Guide: docs/ZERO_CONFIG_SETUP.md
- Windows Guide: docs/WINDOWS_SETUP_QUICK.md
- Native Setup: docs/NATIVE_SETUP.md
Still having issues? Check the logs:
# Backend logs
cd backend
poetry run uvicorn app.main:app --reload --log-level debug
# Frontend logs
cd frontend
npm run dev -- --debug