Skip to content

A demo built with Electron-Vite, utilizing better-sqlite3 and TypeORM. This project adopts a loosely structured MVC-style architecture.

Notifications You must be signed in to change notification settings

POILover/electron-typeorm

Repository files navigation

中文 | English

TODO

  • 支持在运行时的开发环境本地生产环境中转发/uploads/xxx路径到本地相应文件夹, 以便未来在远程部署中可以通过nginx统一资源路径映射
  • 集成better-sqlite3
  • 集成TypeORM
  • 实现仿MVC架构的数据库交互
  • 数据库迁移 - 生成迁移文件并自动引用
  • 远程更新
  • 精简dependencies
  • 取消生产环境的调试模式

一些奇怪的问题

  1. 如果sass模块在dependencies中, 会无法正确执行postinstall中的electron-builder脚本, 放在devDependecies就没问题
  2. 因为electronIPC通信过程传递数据采用的是结构化克隆方式, 它不能序列化Proxy数据, 要使用toRaw方法来将它转为普通对象, 也可以用JSON.parse(JSON.stringfy(obj))的方式

About

A demo built with Electron-Vite, utilizing better-sqlite3 and TypeORM. This project adopts a loosely structured MVC-style architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published