Skip to content
项目

mubaidr/vue-electron-template

在 GitHub 查看

关于

An Electron & Vue.js template with Hot-reloading enabled and common Vue plugins, dev, debug and build scripts configured.

网站与应用开发

这些数字如何统计

可以做什么

  • Modern UI: Bulma-Fluent theme
  • Vue Ecosystem: Vue Router, Vuex, Vue 2 support
  • TypeScript: Full TypeScript support
  • Build Tools: Webpack 5, electron-builder

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

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 --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!

探索相关项目

加载中…