Skip to content

Conversation

@marrouchi
Copy link
Contributor

@marrouchi marrouchi commented Nov 3, 2025

Motivation

This PR replaces Mongoose/MongoDB with TypeORM across the API. Why? To make local development frictionless, enforce relational integrity, and unlock native Postgres features such as pgvector for RAG-style embedding search.

Key advantages

✅ Run locally with SQLite — no Docker required for dev

✅ Postgres + pgvector ready for production semantic search

✅ Real foreign keys & constraints (fewer orphaned records)

✅ First-class transactions and migrations

✅ DB-agnostic (SQLite for dev/tests; Postgres/MySQL for staging/prod

Useful commands :

Installation :

pnpm i

Build frontend project :

cd packages/frontend
VITE_APP_MODE=monolith npm run build

Run the project in monolith mode :

NODE_OPTIONS='--require dotenv/config' pnpm run dev

Todo

  • Functional testing
  • Migration

Type of change:

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

marrouchi and others added 29 commits November 6, 2025 09:24
…render-issue

fix(frontend): resolve navigation extra render
feat(frontend): implement generic DataGrid component
…025-11-05

fix(api): remove unnecessary code
…ation-entity

fix(frontend): resolve settings normalization entity
fix(frontend): resolve Nlp Sample update
…ry-code-2025-11-06

fix(frontend): remove unnecessary code
fix(api): update eslint padding-line-between-statements rule
fix(frontend): resolve inbox subscriber selection
…ilters-2025-11-07

fix: update logic + TS to support nested filters
fix(frontend): enhance app routing + layout logic
fix(frontend): resolve Nlp value creation
@marrouchi marrouchi merged commit 665cc7f into dev Nov 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants