Getting Started
Overview
electron-prokit is a desktop application development framework based on Electron, giving you an ultimate desktop development experience, suitable for Vite related ecosystems. It mainly consists of three parts:
Scaffolding
Provides configurable project templates to quickly develop Electron projects.
Core API
The core functionalities implemented by the framework, providing solutions for the Electron ecosystem.
Plugins
Additional plugins that provide extra support for the framework, making development more convenient for users.
Whether you are a beginner developer or an experienced one, you can leverage electron-prokit to improve productivity and quickly deliver high-quality Electron applications.
You can learn more about the design philosophy of this project in the Introduction section.
Building Your First electron-prokit Project
Compatibility Note
electron-prokit requires Node.js version 18+. However, some templates may depend on higher Node versions to function properly. Please watch out for warnings from your package manager and upgrade Node when necessary.
Directly use the scaffolding to quickly create a project. The scaffolding integrates electron-prokit related ecosystems, so it is recommended to use this method.
With NPM:
npm create electron-prokit myapp
npm create electron-prokit myapp
With Yarn:
yarn create electron-prokit myapp
yarn create electron-prokit myapp
Where myapp is your project name. Then follow the prompts to complete!
Configuring electron-prokit
Configure config
in root directory
- main.ts
- preload.ts
- render.ts
- work.ts
Playground
By walking through the demo you can learn more about electron-prokit's functionalities in details.
git clone https://github.com/Xutaotaotao/electron-prokit.git
cd electron-prokit
pnpm i
pnpm run dev
git clone https://github.com/Xutaotaotao/electron-prokit.git
cd electron-prokit
pnpm i
pnpm run dev
Seeking Help
If you encounter any problems with electron-prokit during development, you can check out GitHub Issues to see if someone has run into the same problem. If not, feel free to open a new issue. You can also seek help in the GitHub Discussions community.