2nd Brain

README

/home/darth/Documents/Mardowns/10_Projekte/YT-Channel-Scanner/app/README.md

YT-Channel-Scanner (Multiuser PWA)

This folder contains the multiuser generation of YT-Channel-Scanner.

  • backend/ – Node/Express API (users, auth, licenses)
  • frontend/ – Svelte + Vite PWA (local IndexedDB archive + WebCrypto vault)

Dev setup

Troubleshooting

Linux/arm64: @rollup/rollup-linux-arm64-gnu missing (Vite/Rollup optional dependency)

If npm fails with errors like Cannot find module @rollup/rollup-linux-arm64-gnu, switch to pnpm and re-install. This repo is already set up for pnpm lockfiles; use the scripts below.

1) Prereqs

  • Node.js 22+
  • MongoDB (local or remote)

2) Environment variables

Backend

Copy and edit:

  • backend/.env.examplebackend/.env

Required (typical):

  • PORT (default 5055)
  • MONGODB_URI
  • MONGODB_DB
  • JWT_SECRET
  • ALLOWED_ORIGIN (e.g. http://localhost:5173)

Frontend

Copy and edit:

  • frontend/.env.examplefrontend/.env

Required:

  • VITE_BACKEND_URL (e.g. http://localhost:5055)

3) Install

From repo root:

npm --prefix app install

4) Run

From repo root:

npm run dev:app

This runs:

OAuth callback route

The OAuth redirect URI is:

  • /oauth/callback

Make sure your hosting serves index.html for that path (SPA history fallback). During local dev, Vite already handles this.

Attachments
Noch keine.