pedrogiampietro / electron-vite-react-boilerplate

:electron: Electron + Vite + React + Sass boilerplate. electron-vite.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘€ Overview

πŸ“¦ Ready out of the box
🎯 Based on the official template-react-ts, project structure will be familiar to you
🌱 Easily extendable and customizable
πŸ’ͺ Supports Node.js API in the renderer process
πŸ”© Supports C/C++ native addons
🐞 Debugger configuration included
πŸ–₯ Easy to implement multiple windows

πŸ›« Quick Setup

# enter the project directory
cd electron-vite-react

# install dependency
npm install

# develop
npm run dev

πŸ“‚ Directory structure

Familiar React application structure, just with electron folder on the top πŸ˜‰
Files in this folder will be separated from your React application and built into dist-electron

β”œβ”€β”€ electron                                 Electron-related code
β”‚   β”œβ”€β”€ main                                 Main-process source code
β”‚   └── preload                              Preload-scripts source code
β”‚
β”œβ”€β”€ release                                  Generated after production build, contains executables
β”‚   └── {version}
β”‚       β”œβ”€β”€ {os}-{os_arch}                   Contains unpacked application executable
β”‚       └── {app_name}_{version}.{ext}       Installer for the application
β”‚
β”œβ”€β”€ public                                   Static assets
└── src                                      Renderer source code, your React application

About

:electron: Electron + Vite + React + Sass boilerplate. electron-vite.github.io

License:MIT License


Languages

Language:TypeScript 81.5%Language:CSS 15.6%Language:HTML 1.6%Language:JavaScript 1.3%