FastAPI + HTMX Web-App zum Speichern von Links mit automatischer KI-Kategorisierung, Zusammenfassung und semantischer Suche (OpenAI). Mehrbenutzer mit Login, SQLite-Persistenz, Docker/Docker-Compose-Setup. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
557 B
Bash
Executable File
23 lines
557 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -e
|
||
cd "$(dirname "$0")"
|
||
|
||
if [ ! -d .venv ]; then
|
||
echo "==> Erstelle virtuelle Umgebung..."
|
||
python3 -m venv .venv
|
||
fi
|
||
|
||
source .venv/bin/activate
|
||
echo "==> Installiere Abhängigkeiten..."
|
||
pip install -q --upgrade pip
|
||
pip install -q -r requirements.txt
|
||
|
||
if [ ! -f .env ]; then
|
||
echo "==> Keine .env gefunden – kopiere .env.example nach .env"
|
||
cp .env.example .env
|
||
echo " Bitte trage in .env deinen OPENAI_API_KEY ein."
|
||
fi
|
||
|
||
echo "==> Starte LinkVault auf http://127.0.0.1:8000"
|
||
exec uvicorn app.main:app --reload --port 8000
|