# electron-vite-vue
[](https://github.com/vitejs/awesome-vite)



**English | [įŽäŊ䏿](README.zh-CN.md)**
đĨŗ Real simple `Electron` + `Vue` + `Vite` boilerplate.
## Quick Start
[](https://asciinema.org/a/483731)
## Overview
This is a `Vite`-integrated `Electron` template built with simplification in mind.
The repo contains only the most basic files, dependencies and functionalities to ensure flexibility for various scenarios.
You need a basic understanding of `Electron` and `Vite` to get started. But that's not mandatory - you can learn almost all the details by reading through the source code. Trust me, this repo is not that complex. đ
## Directory
A `dist` folder will be generated everytime when `dev` or `build` command is executed. File structure of `dist` is identical to the `packages` directory to avoid any potential path calculation errors.
```tree
â
âââ dist Will be generated following the structure of "packages" directory
â âââ main
â âââ preload
â âââ renderer
â
âââ scripts
â âââ build.mjs Build script -> npm run build
â âââ watch.mjs Develop script -> npm run dev
â
âââ packages
â âââ main Main-process source code
â âââ vite.config.ts
â âââ preload Preload-script source code
â âââ vite.config.ts
â âââ renderer Renderer-process source code
â âââ vite.config.ts
â
```
## List the modules you may use as far as possible
Used in Main-process đ [electron-vite-boilerplate](https://github.com/caoxiemeihao/electron-vite-boilerplate)
Used in Renderer-process đ [electron-vite-boilerplate/tree/nodeIntegration](https://github.com/caoxiemeihao/electron-vite-boilerplate/tree/nodeIntegration)
**ES Modules**
- [execa](https://www.npmjs.com/package/execa)
- [node-fetch](https://www.npmjs.com/package/node-fetch)
- [file-type](https://www.npmjs.com/package/file-type)
**Native Addons**
- [sqlite3](https://www.npmjs.com/package/sqlite3)
- [serialport](https://www.npmjs.com/package/serialport)
## Main window
## 蝎æåæ¯ä¸åčļ đĨŗ