forked from Kartikeya-trivedi/Kolamvision
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
40 lines (33 loc) · 1 KB
/
setup.bat
File metadata and controls
40 lines (33 loc) · 1 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
@echo off
REM Windows setup script for Kolam Learning Platform
echo Setting up Kolam Learning Platform...
REM Check if uv is installed
where uv >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo Installing uv...
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
)
REM Install dependencies
echo Installing dependencies...
uv sync
REM Install pre-commit
echo Installing pre-commit...
uv add pre-commit
REM Copy environment file
if not exist .env (
echo Creating .env file...
copy env.example .env
)
REM Create necessary directories
echo Creating directories...
if not exist uploads mkdir uploads
if not exist generated_images mkdir generated_images
if not exist models mkdir models
if not exist logs mkdir logs
echo Setup completed!
echo.
echo Next steps:
echo 1. Edit .env file with your configuration
echo 2. Start Docker services: docker-compose up -d
echo 3. Run migrations: uv run alembic upgrade head
echo 4. Start development server: uv run uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload