anime-gen-api / start.bat
AswinMathew's picture
Upload folder using huggingface_hub
7190fd0 verified
raw
history blame contribute delete
882 Bytes
@echo off
title Anime Generator
echo === Starting Anime Generator ===
echo.
:: Start backend
echo [Backend] Starting FastAPI on http://127.0.0.1:8000 ...
start "Anime-Backend" cmd /c "cd /d %~dp0 && python -m uvicorn app.main:app --reload --host 127.0.0.1 --port 8000"
:: Wait a moment for backend to init
timeout /t 3 /nobreak >nul
:: Start frontend
echo [Frontend] Starting Next.js on http://localhost:3000 ...
start "Anime-Frontend" cmd /c "cd /d %~dp0\anime-web && npm run dev"
echo.
echo === Both servers running ===
echo Frontend: http://localhost:3000
echo Backend: http://127.0.0.1:8000
echo API Docs: http://127.0.0.1:8000/docs
echo.
echo Close the two server windows to stop, or press any key to stop both.
pause >nul
:: Kill both
taskkill /fi "WINDOWTITLE eq Anime-Backend" /f >nul 2>&1
taskkill /fi "WINDOWTITLE eq Anime-Frontend" /f >nul 2>&1
echo Stopped.