Vue-Electron-Template
March 8, 2026 ยท View on GitHub
Vue-Electron-Template
๐ Vue 3 Support: See Issue #907
Template for building desktop applications using Electron and Vue.js with modern tooling.
โจ Features
- Modern UI: Bulma-Fluent theme
- Vue Ecosystem: Vue Router, Vuex, Vue 2 support
- TypeScript: Full TypeScript support
- Build Tools: Webpack 5, electron-builder
- Developer Experience:
- Hot Module Replacement
- VS Code debugging
- vue-devtools integrated
- Advanced Features:
- Worker scripts for CPU-intensive tasks
- SCSS/SASS support
- Production build with
--debugflag - Web/browser build in
dist/web
๐ Quick Start
# Clone repository
git clone https://github.com/mubaidr/vue-electron-template.git
# Navigate to project
cd vue-electron-template
# Install dependencies
npm install
# Development mode
npm run dev
# Debug mode (with VS Code)
npm run debug
# Build installer
npm run build
๐ฆ Scripts
| Command | Description |
|---|---|
npm run dev | Start development with HMR |
npm run debug | Debug mode with VS Code |
npm run build | Build production installer |
npm run lint | Run ESLint |
๐ Project Structure
src/
โโโ main/ # Electron main process
โ โโโ index.js # Main entry point
โโโ renderer/ # Vue.js application
โ โโโ components/ # Vue components
โ โโโ views/ # Page views
โ โโโ store/ # Vuex store
โโโ utilities/
โโโ workerSample.ts # Sample worker script
๐ ๏ธ Configuration
Database
Default: SQL Server
To switch databases, update Sequelize configuration: Sequelize Installation Guide
Theme
Built-in Bulma-Fluent theme for desktop applications.
๐ Debugging
- Renderer Process: Use VS Code debug config
- Main Process: Restart on save
- Production: Add
--debugflag to enable DevTools
๐ License
MIT
๐ฅ Credits
All credits to authors of packages and tools used in this project.
This template is inspired by electron-vue.
โญ If you find this useful, star the repository!