translation_app / start.bat
Athena1621's picture
feat: Introduce new backend architecture with notebooks, sources, chat, and CLaRa models, alongside database schema and updated deployment scripts, while removing old frontend, deployment files, and previous backend components.
88f8604
@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