Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ArcherGu/fast-vite-nestjs-electron
Vite + Vue + Electron + Nestjs with esbuild, crazy fast! β‘
https://github.com/ArcherGu/fast-vite-nestjs-electron
electron esbuild nestjs template vite vue
Last synced: about 2 months ago
JSON representation
Vite + Vue + Electron + Nestjs with esbuild, crazy fast! β‘
- Host: GitHub
- URL: https://github.com/ArcherGu/fast-vite-nestjs-electron
- Owner: ArcherGu
- License: mit
- Created: 2021-07-20T00:10:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T03:38:30.000Z (7 months ago)
- Last Synced: 2024-05-22T22:11:46.245Z (7 months ago)
- Topics: electron, esbuild, nestjs, template, vite, vue
- Language: TypeScript
- Homepage:
- Size: 1.52 MB
- Stars: 259
- Watchers: 5
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-vite - fast-vite-nestjs-electron - Vue3 + Vite + Electron + Nestjs with esbuild. (Get Started / Templates)
- awesome-vite - fast-vite-nestjs-electron - Vue3 + Vite + Electron + Nestjs with esbuild. (Get Started / Templates)
README
# β‘Vite + Electron + Nestjs Template
This template is used to build [vite](https://vitejs.dev/) + [electron](https://www.electronjs.org/) + [nestjs](https://nestjs.com/) projects. Build with [Doubleshot](https://github.com/Doubleshotjs/doubleshot), crazy fast!
π [Doubleshot](https://github.com/Doubleshotjs/doubleshot) is a whole new set of tools to help you quickly build and start a node backend or electron main process.
This is a vue version of the template, you can also use:
- [React template](https://github.com/ArcherGu/vite-react-nestjs-electron)
- [Svelte.js template](https://github.com/ArcherGu/vite-svelte-nestjs-electron)## Introduce
This is a template based on my repo: [fast-vite-electron](https://github.com/ArcherGu/fast-vite-electron). In the main process, I integrated nestjs. In the main process, you can build your code just as you would write a nestjs backend. Desktop clients built from this template can quickly split the electron when you need to switch to B/S.
## Features
- π¨ [vite-plugin-doubleshot](https://github.com/archergu/doubleshot/tree/main/packages/plugin-vite#readme) to run/build electron main process or node backend.
- π» An electron ipc transport for [nestjs](https://nestjs.com/) that provides simple ipc communication.
- πͺ An electron module for [nestjs](https://nestjs.com/) to launch electron windows.
- β© Quick start and build, powered by [tsup](https://tsup.egoist.dev/) and [electron-builder](https://www.electron.build/) integrated in [@doubleshot/builder](https://github.com/Doubleshotjs/doubleshot/tree/main/packages/builder)
## How to use
- Click the [Use this template](https://github.com/ArcherGu/fast-vite-electron/generate) button (you must be logged in) or just clone this repo.
- In the project folder:```bash
# install dependencies
yarn # npm install# run in developer mode
yarn dev # npm run dev# build
yarn build # npm run build
```## Note for PNPM
In order to use with `pnpm`, you'll need to adjust your `.npmrc` to use any one the following approaches in order for your dependencies to be bundled correctly (ref: [#6389](https://github.com/electron-userland/electron-builder/issues/6289#issuecomment-1042620422)):
```
node-linker=hoisted
``````
public-hoist-pattern=*
``````
shamefully-hoist=true
```## Relative
My blog post:
- [ζι DX Vite + Electron + esbuild](https://archergu.me/posts/vite-electron-esbuild)
- [η¨θ£ ι₯°ε¨η» Electron ζδΎδΈδΈͺεΊη‘ API ζ‘ζΆ](https://archergu.me/posts/electron-decorators)