An open API service indexing awesome lists of open source software.

https://github.com/luccasfr/electron-boilerplate

Boilerplate for Electron apps with file-based router, tailwind, shadcn/ui, and many more.
https://github.com/luccasfr/electron-boilerplate

electron-forge react shadcn-ui tailwindcss tanstack-router typescript vite

Last synced: about 2 months ago
JSON representation

Boilerplate for Electron apps with file-based router, tailwind, shadcn/ui, and many more.

Awesome Lists containing this project

README

          

# Electron Boilerplate

## What's included out-of-the-box?

- Electron Forge
- Vite
- React
- TailwindCSS
- shadcn/ui
- Full Typescript support
- Tanstack file-based router

## There are two options

1. With the system title-bar which is the "default".
![Default](./assets/default.png)

2. With custom title-bar. (branch: `custom-title-bar`)
![Custom](./assets/custom-title-bar.png)

In case you want this second option, you can clone the branch with it:

```bash
git clone -b custom-title-bar https://github.com/luccasfr/electron-boilerplate
```

## How to get started?

1. Install dependencies

```bash
npm install
```

2. Start the project

```bash
npm start
```

## How to create new routes?

Just push new routes into `app` dir and `@tanstack/router-vite-plugin` will do the job, generating the `routeTree.gen.ts` file.
In case of doubts, follow the doc's.

To check **filename conventions**, follow this [link](https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#file-naming-conventions).

## Authors





Lucas Ferreira