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.example→backend/.env
Required (typical):
PORT(default 5055)MONGODB_URIMONGODB_DBJWT_SECRETALLOWED_ORIGIN(e.g.http://localhost:5173)
Frontend
Copy and edit:
frontend/.env.example→frontend/.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:
- backend: http://localhost:5055
- frontend: http://localhost:5173
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.