LuanRoger / electron-shadcn

:electron: Electron Forge with shadcn-ui (Vite + Typescript)
MIT License
114 stars 16 forks source link
electron electron-forge github-actions i18n jest linux macos playwright prettier react shadcn-ui storybook tailwindcss typescript vite windows

electron-shadcn

Electron in all its glory. Everything you will need to develop your beautiful desktop application.

Demo GIF

Libs and tools

To develop a Electron app, you probably will need some UI, test, formatter, style or other kind of library or framework, so let me install and configure some of them to you.

Core 🏍️

DX πŸ› οΈ

UI 🎨

Test πŸ§ͺ

Packing and distribution πŸ“¦

Documentation πŸ“š

CI/CD πŸš€

Project preferences 🎯

If you don't know some of these libraries or tools, I recommend you to check their documentation to understand how they work and how to use them.

Directory structure

.
└── ./src/
    β”œβ”€β”€ ./src/assets/
    β”‚   └── ./src/assets/fonts/
    β”œβ”€β”€ ./src/components/
    β”‚   └── ./src/components/ui/
    β”œβ”€β”€ ./src/helpers/
    β”‚   └── ./src/helpers/ipc/
    β”œβ”€β”€ ./src/layout/
    β”œβ”€β”€ ./src/lib/
    β”œβ”€β”€ ./src/pages/
    β”œβ”€β”€ ./src/stories/
    β”œβ”€β”€ ./src/style/
    └── ./src/tests/

NPM script

To run any of those scripts:

npm run <script>

The test scripts involving Playwright require the app be builded before running the tests. So, before run the tests, run the package, make or publish script.

How to use

  1. Clone this repository
git clone https://github.com/LuanRoger/electron-shadcn.git

Or use it as a template on GitHub

  1. Install dependencies
npm install
  1. Run the app
npm run start

Used by

Does you've used this template in your project? Add it here and open a PR.

License

This project is licensed under the MIT License - see the LICENSE file for details.