Files
worst_web/scripts/setup.sh
T
renato97 25449aa5df feat: worst-scan fansub web — initial release
Posts engine (SQLite + auto-publisher via poller), public feed with
clickable tags, reader, admin panel, submit/search/queue tools.
BFF proxy to pipeline API. Clean dark design. Docker-ready.
2026-07-23 15:58:28 -03:00

35 lines
699 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo "=== worst-scan-web setup ==="
echo ""
if [ ! -f .env ]; then
cp .env.example .env
echo "[INFO] .env created from .env.example — edit it with your API settings."
else
echo "[OK] .env already exists"
fi
echo ""
echo "Choose install method:"
echo " 1) Local (npm run dev)"
echo " 2) Docker Compose"
echo ""
read -rp "Method [1/2]: " method
if [ "$method" = "2" ]; then
echo ""
echo "=== Docker build & start ==="
docker compose up -d --build
echo ""
echo "Web running at http://localhost:3000"
else
echo ""
echo "=== Local install ==="
npm install
echo ""
echo "Run: npm run dev"
echo "Or: npm run build && npm start"
fi