@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