Add .bat files for easier installation on windows and Update readme.md
- Add a Windows-first setup flow via setup.bat
- Add launcher scripts (start-all.bat, start-backend.bat, start-frontend.bat) for consistent local runs
- Update README with Windows setup instructions and a navigable table of contents
Summary by CodeRabbit
-
Documentation
- Enhanced README with Table of Contents and in-page navigation anchors.
- Added Architecture Overview and Reasoning Engine sections.
- Reorganized Getting Started with clearer, platform-specific installation steps.
-
New Features
- Added Windows setup automation scripts for environment configuration.
- Added Windows scripts to launch backend and frontend services.
Walkthrough
This PR introduces comprehensive Windows automation for environment setup and service orchestration, alongside a major README restructure. Four new batch scripts handle dependency validation, Python/Node.js environment configuration, virtual environment creation, and coordinated service startup. The README gains navigation anchors, expanded architecture documentation, and platform-specific setup instructions.
Changes
| Cohort / File(s) | Summary |
|---|---|
Documentation README.md |
Restructured with Table of Contents, in-page navigation anchors, expanded Key Features and Architecture Overview sections, reorganized Getting Started with platform-specific setup flows (Windows/macOS/Linux), and integrated setup script references. |
Windows Setup & Startup Scripts setup.bat, start-all.bat, start-backend.bat, start-frontend.bat |
Introduces four batch scripts: setup.bat orchestrates full environment initialization (Python venv, Node.js validation, dependency installation, .env configuration); start-all.bat coordinates backend and frontend service launch; start-backend.bat validates backend initialization and starts the API server; start-frontend.bat manages frontend vite server startup with available port detection and fallback logic. |
Sequence Diagram
sequenceDiagram
actor User
participant setup.bat
participant Backend
participant Frontend
participant User2 as User (Start Services)
participant start-all.bat
participant start-backend.bat
participant start-frontend.bat
User->>setup.bat: Execute setup.bat
rect rgb(200, 220, 255)
note over setup.bat: Python & Node.js Validation
setup.bat->>Backend: Create venv, install deps
setup.bat->>Backend: Initialize SQLite DB
setup.bat->>Frontend: Install npm dependencies
setup.bat->>Frontend: Generate .env (VITE_*)
end
setup.bat-->>User: ✓ Setup Complete
User2->>start-all.bat: Execute start-all.bat
rect rgb(200, 255, 220)
note over start-all.bat: Service Orchestration
start-all.bat->>start-backend.bat: Launch backend
start-all.bat->>start-frontend.bat: Launch frontend
start-backend.bat->>Backend: Validate venv, start API (port 8000)
start-frontend.bat->>Frontend: Detect available port, start dev server (port 8080)
end
start-backend.bat-->>User2: Backend running
start-frontend.bat-->>User2: Frontend running
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
- Batch script validation logic: Verify version parsing (Node.js 22.8.0+), venv detection, and error handling paths in
setup.batandstart-backend.bat - Port detection and fallback mechanisms: Review PowerShell-based port probing and loopback fallback logic in
start-frontend.batfor correctness and edge cases - Environment file manipulation: Ensure
set_env_valuehelper correctly updates or appends key-value pairs without duplication across scripts - Cross-script dependencies: Validate that
start-all.batcorrectly orchestratesstart-backend.batandstart-frontend.batwith proper error propagation - README navigation structure: Confirm all anchor tags are correctly formatted and table of contents links resolve properly
Possibly related PRs
- video-db/Director#96: Both PRs modify and expand README.md with updates to introduction, features, architecture sections, and Getting Started documentation, forming part of a broader documentation reorganization effort.
Suggested reviewers
- ashish-spext
- ankit-v2-3
Poem
🐰 A rabbit hops through setup's gate,
With batch scripts neat and first-rate,
Windows now sings, services start,
README's maps show every part,
Jump links guide from end to start!
Pre-merge checks and finishing touches
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title accurately summarizes the main changes: addition of Windows batch files for installation and README updates. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✨ Finishing touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.