File size: 1,615 Bytes
88f8604
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
REM Antigravity Notebook - Startup Script (Windows)
REM This script starts all services needed for Antigravity Notebook

echo ======================================
echo πŸš€ Antigravity Notebook - Startup
echo ======================================

REM Check if .env exists
if not exist .env (
    echo ⚠️  .env file not found. Creating from .env.example...
    copy .env.example .env
    echo βœ… Created .env file. You may want to customize it.
)

REM Start PostgreSQL
echo.
echo πŸ“Š Starting PostgreSQL...
docker-compose up -d

REM Wait for PostgreSQL to be ready
echo ⏳ Waiting for PostgreSQL to be ready...
timeout /t 5 /nobreak >nul

REM Initialize database
echo.
echo πŸ”§ Initializing database...
python -m backend.database

REM Start backend
echo.
echo πŸ–₯️  Starting FastAPI backend...
echo    (API will be available at http://localhost:8000)
start "Antigravity Backend" cmd /c python -m backend.main

REM Wait for backend to start
timeout /t 10 /nobreak >nul

REM Start frontend
echo.
echo 🎨 Starting Streamlit frontend...
echo    (UI will be available at http://localhost:8501)
start "Antigravity Frontend" cmd /c streamlit run frontend/app_notebook.py

echo.
echo ======================================
echo βœ… Antigravity Notebook is running!
echo ======================================
echo.
echo πŸ“ Services:
echo    β€’ Frontend UI:  http://localhost:8501
echo    β€’ Backend API:  http://localhost:8000
echo    β€’ API Docs:     http://localhost:8000/docs
echo.
echo Services are running in separate windows.
echo Close those windows to stop the services.
echo.

pause