33800 Docs

← Retour

QwikPress - Suite Supabase + Redis

Date : 25/12/2025 Status : EN COURS Priorite : HAUTE - CETTE SEMAINE


Contexte

Architecture hybride fichiers/Supabase implémentée le 25/12/2025.

Repo : https://gitlab.33800.nowhere84.com/gouroubleu/qwikpress Commit : ff23d0e - feat: Architecture hybride Supabase + Redis


Ce qui a été fait


Prochaines étapes

1. Tester les migrations sur Supabase DEV

cd /home/gouroubleu/projects/qwikpress/supabase
export DATABASE_URL="postgresql://postgres:xxx@192.168.1.51:5432/postgres"
./scripts/setup.sh --with-seeds

2. Migrer les données Rhinov

bun scripts/migrate-from-files.ts ../data rhinov

3. Tester le mode Supabase

DATA_MODE=supabase npm start

4. Intégrer dans le code existant

5. Ajouter dépendances si manquantes

npm install @supabase/supabase-js ioredis

Fichiers clés

Fichier Description
src/services/data/index.ts Export centralisé
src/services/data/data-service.factory.ts Factory avec switch ENV
supabase/scripts/setup.sh Setup complet Supabase
supabase/scripts/migrate-from-files.ts Migration fichiers → DB

Variables d'environnement (mode Supabase)

DATA_MODE=supabase
SUPABASE_URL=https://supabase-api-prod.33800.nowhere84.com
SUPABASE_SERVICE_ROLE_KEY=xxx
REDIS_HOST=prod-redis.local
REDIS_PORT=6379
SITE_SLUG=rhinov

Notes


Pour reprendre : "on continue QwikPress Supabase" ou "où en est QwikPress"