Skip to content

Paulsenik/wannabe-starchive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(Name tbd)

Inspired by Starchives

Rust-Stack:

Deploy

# 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/data
docker compose up --build

Dependencies

  • Docker Compose
  • Rust
    • cargo install trunk
    • rustup target add wasm32-unknown-unknown
  • OpenSSL
    • Debian:
      sudo apt install pkg-config libssl-dev

Local Deploy

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:

  1. Elasticsearch
    docker compose up elasticsearch
  2. Backend
    cd backend
    cargo run
  3. Frontend
    cd frontend
    trunk serve --release

(Proxy?)

Circumvent Youtube IP-ban with Proxy, if necessary:

About

A search-engine for StarCitizen-videos

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages