mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:01:09 +02:00
feat(context): add NestJS backend, PostgreSQL database, and migrate web app from Supabase to API
- Create NestJS backend on port 3020 with 4 modules (space, document, ai, token) - Add Drizzle schema with 5 tables (spaces, documents, token_transactions, model_prices, user_tokens) - Rewrite web services (spaces, documents, tokens, ai) to use shared API client instead of Supabase - Move AI API keys server-side (Azure OpenAI, Google Gemini) - Add seed script for model prices (gpt-4.1, gemini-pro, gemini-flash) - Add 70 unit tests across 4 test suites (space, document, token, ai services) - Add monorepo integration (setup-databases.sh, generate-env.mjs, docker init-db, root scripts) - Remove @supabase/supabase-js dependency and delete supabase.ts from web app - Update CLAUDE.md with full API documentation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7f4edb3dfb
commit
ea4b585f37
50 changed files with 4041 additions and 361 deletions
|
|
@ -258,6 +258,18 @@ CALENDAR_DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/calendar
|
|||
# Local dev: http://localhost:3020
|
||||
STT_URL=https://stt-api.mana.how
|
||||
|
||||
# ============================================
|
||||
# CONTEXT PROJECT
|
||||
# ============================================
|
||||
|
||||
CONTEXT_BACKEND_PORT=3020
|
||||
CONTEXT_DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/context
|
||||
|
||||
# AI API Keys (server-side only)
|
||||
CONTEXT_AZURE_OPENAI_API_KEY=YOUR_KEY
|
||||
CONTEXT_AZURE_OPENAI_ENDPOINT=https://memoroseopenai.openai.azure.com/
|
||||
CONTEXT_GOOGLE_API_KEY=YOUR_KEY
|
||||
|
||||
# ============================================
|
||||
# STORAGE PROJECT (Cloud Drive)
|
||||
# ============================================
|
||||
|
|
@ -359,6 +371,13 @@ TRACES_DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/traces
|
|||
SKILLTREE_BACKEND_PORT=3024
|
||||
SKILLTREE_DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/skilltree
|
||||
|
||||
# ============================================
|
||||
# MUKKE PROJECT
|
||||
# ============================================
|
||||
|
||||
MUKKE_BACKEND_PORT=3010
|
||||
MUKKE_DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/mukke
|
||||
|
||||
# ============================================
|
||||
# WORLDREAM GAME
|
||||
# ============================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue