mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-14 10:47:46 +02:00
Replace the Node/Express backend with a Rust implementation that keeps the same REST API, MongoDB collections and Redis cache keys, so existing users, subscriptions and progress keep working. - axum + mongodb + redis, bcrypt and HS256 JWT compatible with old data - RSS parsing, iTunes discovery/trending, background sync (1h / 4h) - Docker image now builds a static Rust binary on debian-slim - CI runs cargo tests before publishing the image - compose uses pull_policy: always so a restart picks up the new image Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1007 B
Batchfile
46 lines
1007 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
echo.
|
|
echo 🎙️ Podcastic Development Server Launcher
|
|
echo ==========================================
|
|
echo.
|
|
|
|
REM Check if .env exists
|
|
if not exist ".env" (
|
|
echo ⚠️ .env file not found!
|
|
echo Creating .env from .env.example...
|
|
copy .env.example .env
|
|
echo ✓ .env created. Please update with your configuration.
|
|
echo.
|
|
)
|
|
|
|
REM Check for MongoDB and Redis
|
|
echo 📡 Checking prerequisites...
|
|
echo ⚠️ Make sure MongoDB and Redis are running!
|
|
echo.
|
|
|
|
REM Start backend
|
|
echo 🚀 Starting Backend (Rust)...
|
|
cd backend
|
|
start "Podcastic Backend" cmd /c "set PORT=5000&& cargo run"
|
|
cd ..
|
|
|
|
timeout /t 2 /nobreak
|
|
|
|
REM Start frontend
|
|
echo 🚀 Starting Frontend (Vite)...
|
|
cd frontend
|
|
start "Podcastic Frontend" npm run dev
|
|
cd ..
|
|
|
|
echo.
|
|
echo ✓ Servers started!
|
|
echo.
|
|
echo 📍 Frontend: http://localhost:3000
|
|
echo 📍 Backend: http://localhost:5000
|
|
echo.
|
|
echo Windows command windows will stay open. Close them to stop servers.
|
|
echo.
|
|
pause
|