Electron boilerplate

June 30, 2026 ยท View on GitHub

Electron + Vite + React


Stars Forks
License Version Contributors Last Commit

static badge from nodejs static badge from electronjs static badge from electron builder static badge from typescript static badge from reactjs static badge from vite

banner


Help

Getting Started

# Clone this repository
$ git clone https://github.com/saulotarsobc/sc-electron-boilerplate
# Go into the repository
$ cd sc-electron-boilerplate
# Install dependencies
$ npm install
# Run the app
$ npm run dev

Available Scripts

{
  "scripts": {
    "dev": "vite",
    "preview": "vite preview",
    "build": "tsc && vite build",
    "lint": "eslint . --ext .ts,.tsx",
    "postinstall": "electron-builder install-app-deps",
    "update-readme": "tsx scripts/update-readme.js",
    "generate-electron-builder": "tsx scripts/generate-electron-builder.ts",
    "dist": "npm run generate-electron-builder && npm run build && electron-builder"
  }
}

References