演示

技术栈

Quark ERP / Quan ERP 生态使用的语言、框架、数据存储、UI 库与运行时的详细清单——版本显示为当前 base 栈的主版本号。

概述

Quark ERP 是 TypeScript 优先的插件化 ERP。Base 与所有插件共享同一条 @quan-erp/* 版本线(当前 1.x)。

  • 后端 — 基于 Express 的 @quan-erp 框架
  • 前端 — React + Vite,运行时注册到核心
  • Web / Electron / Capacitor — 同一套 UI
  • 将插件依赖与 requiredBasedVersion 对齐 base 1.x

后端

主版本取自 quan-erp-node-core/base。

技术角色版本说明
TypeScriptLanguage5All backend services and entities; ESM builds with .js import extensions
Quark ERP FrameworkPlugin host / DI / HTTP1Based on Express.js — IPlugin, @Module, controllers, middleware, lifecycle hooks
TypeORMORM0Entities, repositories, QueryRunner, synchronize (dev), and migrations (staging/prod)
PostgreSQLPrimary database17Persistent ERP data (often via pgbouncer in compose)
RedisCache / sessions / jobs7Caching, sessions, and queue / cron helpers

前端

主版本取自 base/frontend/package.json。

技术角色版本说明
ReactUI library19Plugin screens, core chrome, and shared components
TypeScriptLanguage5All frontend packages; keep types aligned with shared-types / export surfaces
Tailwind CSSStyling4Utility-first styling; match core / shared-ui patterns
TanStack React QueryServer state5Fetching, caching, and mutations for backend APIs
ZustandClient state5Lightweight stores for core/plugin UI state
CapacitorMobile runtime7Native iOS / Android (@capacitor/core); prefer Platforms helpers from shared-frontend-core

部署与平台

同一前端产物可运行在多种目标上。

目标运行时版本交付方式说明
WebBrowser + NginxBase frontend container / static hostDefault local compose target on :80
DesktopElectron39Desktop app wrapping the web appUse Platforms.isDesktop() for desktop-only paths
MobileCapacitor7Native iOS / Android appCamera, haptics, filesystem, etc. via shared-frontend-core
Server / hostDocker Compose1Postgres, Redis, backend, frontendSee Deployment for install.sh / compose layout

桌面端

Electron 39

移动端

Capacitor 7

Web

Web