Vue-Electron-Template

March 8, 2026 ยท View on GitHub

Vue-Electron

Vue-Electron-Template

Build Status License Stars

๐Ÿš€ 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 --debug flag
    • 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

CommandDescription
npm run devStart development with HMR
npm run debugDebug mode with VS Code
npm run buildBuild production installer
npm run lintRun 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 --debug flag 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!