The PowerShell script is more robust and handles errors better than batch files.
-
Open PowerShell (as regular user, no admin needed)
-
Navigate to the project folder:
cd "D:\Computer-Science\Artificial-Intelligence\AI-programing\Document_analyzer-operator" -
Run the setup:
.\setup_auto.ps1
If you get an execution policy error, run:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass .\setup_auto.ps1
If PowerShell doesn't work, use the batch file:
.\setup_auto.bat- ✅ Checks Python (3.11+)
- ✅ Checks Node.js (18+)
- ✅ Generates backend
.envautomatically - ✅ Generates frontend
.env.localautomatically - ✅ Installs all dependencies
- ✅ Runs database migrations
Time: 3-5 minutes
cd backend
poetry run uvicorn app.main:app --reloadcd frontend
npm run dev- Frontend: http://localhost:3000
- API Docs: http://localhost:8000/docs
Install Python 3.11+ from: https://www.python.org/downloads/
Install Node.js 18+ from: https://nodejs.org/
Start PostgreSQL:
net start postgresqlOr install it from: https://www.postgresql.org/download/windows/
Start Redis:
net start RedisOr install it from: https://github.com/microsoftarchive/redis/releases
- Full Guide: ZERO_CONFIG_SETUP.md
- Detailed Docs: docs/AUTO_SETUP_GUIDE.md
- Quick Reference: QUICKSTART.md
That's it! Run .\setup_auto.ps1 and you're good to go! 🚀