Application web B2B pour prestataires d'impression 3D Bambu Lab — calculateur de coûts, devis PDF, gestion clients, emails automatiques, paiements multi-méthodes, rendez-vous Calendly et notifications push.
Navigateur (Vue 3 SPA)
│
├── Supabase JS SDK ──► Supabase Cloud (Frankfurt)
│ ├── auth.users (authentification JWT)
│ ├── PostgreSQL (RLS) (toutes les tables métier)
│ ├── Realtime (notifications live)
│ └── Edge Functions (10 fonctions Deno)
│ ├── Brevo (emails devis, bienvenue, rappel)
│ ├── Resend (email contact)
│ ├── Stripe (PaymentIntent + webhook)
│ ├── Calendly (webhook RDV)
│ └── VAPID (push navigateur)
│
└── Netlify CDN (build dist/ + headers HTTP)
| # | Page | Ce qu'on y trouve |
|---|---|---|
| 01 | Présentation & stack | Services, technologies, architecture |
| 02 | Installation | Prérequis, étapes, variables d'environnement |
| 03 | Structure du projet | Arborescence complète et rôle de chaque fichier |
| 04 | Flux métier | Devis, envoi, paiement, notifications, RDV, rappels |
| 05 | Edge Functions | 10 fonctions Supabase — détail, secrets, déploiement |
| 06 | Commandes & Déploiement | Scripts dev/test/build et Netlify |
| 07 | Dépannage | Problèmes fréquents et solutions |
| 08 | Conformité légale | RGPD, LCEN, cookies, hébergement |
| 09 | Performances Lighthouse | 100 desktop / 99 mobile — métriques détaillées |
| 10 | Base de données | Schéma complet, tables, RLS, triggers, index |
| 11 | Rôles & Sécurité | Guard router, RLS par table, audit Edge Functions |
| 12 | Notifications & Push | Notifs in-app Realtime + Web Push VAPID |
| 13 | RDV & Calendly | Webhook Calendly, table appointments, admin RdvTab |
| 14 | SEO & Méta | Titres, descriptions, OG, canonical pour les 16 pages |
| 15 | Tests | Vitest (140 tests) + Playwright E2E (5 fichiers × 3 navigateurs) |
| 16 | Audit complet | Vision A–Z : cadrage, BDD, sécurité, déploiement, RGPD |
| 17 | Templates emails Supabase | 11 templates HTML prêts à coller dans Supabase Auth |
| 18 | Stripe + PayPal | Guide complet : clés API, webhook, PayPal, test, prod |
git clone <url-du-repo> && cd BambuCalc
npm install
cp .env.example .env.local # remplir avec vos clés Supabase + Stripe
npm run dev # → http://localhost:5173Variables minimales dans .env.local :
VITE_SUPABASE_URL=https://xxxx.supabase.co
VITE_SUPABASE_ANON_KEY=eyJ...
VITE_STRIPE_PUBLIC_KEY=pk_test_...