mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 22:06:42 +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
20
nutriphi/backend/.env.example
Normal file
20
nutriphi/backend/.env.example
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Google Gemini Configuration
|
||||
GEMINI_API_KEY=your-gemini-api-key-here
|
||||
|
||||
# PostgreSQL Database (using nutriphi-database package)
|
||||
DATABASE_URL=postgresql://nutriphi:nutriphi_dev_password@localhost:5435/nutriphi
|
||||
|
||||
# Hetzner Object Storage (S3-compatible)
|
||||
# Create in Coolify Dashboard -> S3 Storages
|
||||
S3_ENDPOINT=https://fsn1.your-objectstorage.com
|
||||
S3_ACCESS_KEY_ID=your-access-key-id
|
||||
S3_SECRET_ACCESS_KEY=your-secret-access-key
|
||||
S3_BUCKET_NAME=nutriphi-meals
|
||||
S3_REGION=fsn1
|
||||
S3_PUBLIC_URL=https://nutriphi-meals.fsn1.your-objectstorage.com
|
||||
|
||||
# Mana Core Auth Service
|
||||
MANACORE_AUTH_URL=https://auth.manacore.de
|
||||
|
||||
# Server Configuration
|
||||
PORT=3002
|
||||
Loading…
Add table
Add a link
Reference in a new issue