A minimal Electron app with Drizzle ORM and SQLite integration.
- Automatically runs database migrations on startup.
- Stores the database file at
$HOME/.electron-drizzle/dev.db.
- Node.js >= 22
git clone https://github.com/bludnic/electron-drizzle.gitCreate .env file.
cp .env.example .envInstall dependencies
npm installBuild the app
npm run build:electronRun the app
chmod +x dist-electron/electron-drizzle-1.0.0.AppImage
./dist-electron/electron-drizzle-1.0.0.AppImage| Command | Action |
|---|---|
npm run build |
Bundle source files |
npm run build:electron |
Build the Electron app |
npm run dev |
Run Electron in dev mode |
npm run db:generate |
Generate SQL migrations |
npm run db:migrate |
Apply DB migrations |
npm run db:seed |
Seed the database |
This project is licensed under the MIT License.