mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 08:23:37 +02:00
feat(nutriphi): migrate from Supabase to PostgreSQL + Hetzner S3
- Add nutriphi-database package with Drizzle ORM - meals and nutrition_goals schemas - PostgreSQL 16 Docker setup - Drizzle Kit configuration - Migrate backend from Supabase to Drizzle - Add DatabaseModule with connection pooling - Add StorageService for Hetzner Object Storage (S3-compatible) - Update MealsService with Drizzle queries - Add /api/meals/upload endpoint for image upload + analysis - Update web app to use backend for uploads - Remove Supabase Storage direct upload - Update uploadService to send images to backend - Remove Supabase dependencies from package.json - Simplify hooks.server.ts - Add Coolify deployment configuration - Dockerfile for production build - docker-compose.coolify.yml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ce71db2fc0
commit
6537863696
156 changed files with 15236 additions and 170 deletions
18
nutriphi/apps/web/.env.example
Normal file
18
nutriphi/apps/web/.env.example
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Supabase Configuration (same as mobile app)
|
||||
PUBLIC_SUPABASE_URL=https://your-project.supabase.co
|
||||
PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
|
||||
|
||||
# Nutriphi Backend API
|
||||
PUBLIC_BACKEND_URL=http://localhost:3002
|
||||
|
||||
# Mana Middleware (Auth)
|
||||
PUBLIC_NUTRIPHI_MIDDLEWARE_URL=https://api.manacore.de
|
||||
PUBLIC_MIDDLEWARE_APP_ID=nutriphi
|
||||
|
||||
# Storage
|
||||
PUBLIC_STORAGE_BUCKET=meal-photos
|
||||
|
||||
# OAuth (optional)
|
||||
PUBLIC_GOOGLE_CLIENT_ID=your-google-client-id
|
||||
PUBLIC_APPLE_CLIENT_ID=your-apple-client-id
|
||||
PUBLIC_APPLE_REDIRECT_URI=https://nutriphi.app/auth/callback
|
||||
Loading…
Add table
Add a link
Reference in a new issue