Skip to content

πŸ₯³ Really simple Electron + Vite + SolidJS + Tailwindcss boilerplate.

License

Notifications You must be signed in to change notification settings

maulik9898/electron-vite-solidjs-tailwindcss

Repository files navigation

electron-vite-solidjs-tailwind

GitHub stars GitHub issues GitHub license Required Node.JS >= 14.18.0 || >=16.0.0

English

πŸ‘€ Overview

πŸ“¦ Ready out of the box
🎯 Based on the official solidjs/templates/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 start

git clone --depth 1 --branch main https://github.com/maulik9898/electron-vite-solidjs-tailwindcss.git your-project-name
cd your-project-name
npm install

🐞 Debug

electron-vite-react-debug.gif

πŸ“‚ 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
β”‚   └── resources             Resources for the production build
β”‚       β”œβ”€β”€ icon.icns             Icon for the application on macOS
β”‚       β”œβ”€β”€ icon.ico              Icon for the application
β”‚       β”œβ”€β”€ installerIcon.ico     Icon for the application installer
β”‚       └── uninstallerIcon.ico   Icon for the application uninstaller
β”‚
β”œβ”€β”€ release                   Generated after production build, contains executables
β”‚   └── {version}
β”‚       β”œβ”€β”€ {os}-unpacked     Contains unpacked application executable
β”‚       └── Setup.{ext}       Installer for the application
β”‚
β”œβ”€β”€ public                    Static assets
└── src                       Renderer source code, your React application

🚨 Be aware

This template integrates Node.js API to the renderer process by default. If you want to follow Electron Security Concerns you might want to disable this feature. You will have to expose needed API by yourself.

To get started, remove the option as shown below. This will modify the Vite configuration and disable this feature.

# vite.config.ts

electron({
- renderer: {}
})

❔ FAQ

About

πŸ₯³ Really simple Electron + Vite + SolidJS + Tailwindcss boilerplate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published