-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.bat
More file actions
43 lines (37 loc) · 1.27 KB
/
setup.bat
File metadata and controls
43 lines (37 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
REM Codebase Timeline Visualizer Setup Helper
REM This script helps run the setup check with the correct Python environment
echo 🚀 Codebase Timeline Visualizer Setup Helper
echo.
REM Check if virtual environment exists
if not exist ".venv\Scripts\python.exe" (
echo ❌ Virtual environment not found at .venv
echo Please run: python -m venv .venv
echo Then: .venv\Scripts\pip.exe install -r requirements.txt
pause
exit /b 1
)
echo ✅ Virtual environment found
echo.
REM Run setup check with virtual environment
echo 🔍 Running setup verification...
.venv\Scripts\python.exe check_setup.py
REM Check exit code
if %ERRORLEVEL% EQU 0 (
echo.
echo 🎉 Setup complete! You can now use the application.
echo.
echo Quick start commands:
echo - Analyze a repo: .venv\Scripts\python.exe -m cli.src.main analyze C:\path\to\repo
echo - Start web UI: .venv\Scripts\python.exe -m cli.src.main serve
echo - Run example: .venv\Scripts\python.exe example.py
) else (
echo.
echo ❌ Setup check failed. Please fix the issues above.
echo Common solutions:
echo - Install Node.js from https://nodejs.org/
echo - Run: .venv\Scripts\pip.exe install -r requirements.txt
echo - Make sure Git is installed and in PATH
)
echo.
pause