A Boiler Code Generator for Electron With React or Vue

Electron React Vue Elecrue

What is Elecrue?

Elecrue is a boilerplate generator npm package, it generates the boiler code for electron with react or vue with tailwindcss.

Elecrue - Currently Available Templates

Currently Elecrue provides these following starter code templates:

  • 1. react-electron-js
  • 2. react-electron-ts
  • 4. react-electron-tailwind-js
  • 5. react-electron-tailwind-ts
  • 6. vue-electron-js
  • 7. vue-electron-tailwind-js

How to install Elecrue?

Use the command below to install elecrue.

npm i -g elecrue

How to use it?

At the command line, just type elecrue. You will then be asked to select a template. After selecting the template, you must enter the project name. Elecrue downloads all node packages to the project folder. It just that easy.

Why Elecrue not use IPC?

“From my experience connecting electron to react or vue is a hard thing, So I found a much easier and reliable solution to this problem, By creating an express server in electron file we can make endpoints for our react or vue application to hit, when app will request those endpoints it will trigger an event by doing that we can do all the work that we can’t do in react or vue. Think of it as a function in another file but without calling you are making get request to the server to trigger that function.”


Post a Comment