Inspired by Starchives
Rust-Stack:
- Rocket
- Yew
- yt-stranscript-rs
- ElasticSearch
# Create the directory if it doesn't exist
sudo mkdir -p /deployment/wannabe-starchive/data
# Change ownership to UID 1000 (elasticsearch user)
sudo chown -R 1000:1000 /deployment/wannabe-starchive/data
# Set proper permissions
sudo chmod -R 755 /deployment/wannabe-starchive/datadocker compose up --build- Docker Compose
- Rust
- cargo install trunk
- rustup target add wasm32-unknown-unknown
- OpenSSL
- Debian:
sudo apt install pkg-config libssl-dev
- Debian:
setup .env file:
touch backend/.env.env-Variables
ELASTICSEARCH_URL = "http://localhost:9200"
# https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials
YOUTUBE_API_KEY = "YOUR-GOOGLE-API-KEY"
ADMIN_TOKEN = "BENE_KANN_KEIN_COUNTER_STRIKE"
LANGUAGE_PRIORITY = "en,en-GB,en-US,de,de-DE"
FRONTEND_URL = "http://localhost:8080"
BACKEND_URL = "http://localhost:8000"
# Optional
CRAWL_BURST_MAX = 1
MONITOR_CHECK_SCHEDULE = "0 */10 * * * *"
CRAWL_QUEUE_SCHEDULE = "*/30 * * * * *"Deploy:
- Elasticsearch
docker compose up elasticsearch
- Backend
cd backend cargo run - Frontend
cd frontend trunk serve --release
Circumvent Youtube IP-ban with Proxy, if necessary: