Skip to content

A collection of quick tutorials of desktop apps build with Electron

Notifications You must be signed in to change notification settings

spikespiegel91/Tutorials-ElectronApp

Repository files navigation

Tutorials-ElectronApp

A collection of Hello World tutorials of desktop apps built with Electron

👉 How to run the desktop-app:

cd 1_HelloWorld 
npm run dev  

👉 How to run the web-app:

cd 2_HelloWorld_web 
npm run dev  

and open your ➜ Local: http://localhost:****/

or start the server and open the app in a new browser tab

npm run dev -- --open

Getting started with electron-vite

👉 Electron-vite is a build tool that aims to provide a faster and leaner development experience for Electron.

👉 The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on Node.js and Chromium and is used by the Visual Studio Code and many other apps.

👉 Vite (French word for "quick", pronounced /vit/, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts:

👉 Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.

1. Electron-vite pre-requisites:

Requires Node.js version 14.18+ and Vite version 3.0+

Just install the Node.js package, it includes both node and npm executables

Vite is resolved within the create-electron tool, no steps required.

2. Scaffolding Your First electron-vite DesktopApp Project:

use the create-electron tool to scaffold your project:

👉 npm create @quick-start/electron

Then follow the prompts!

✔ Project name: ...electron-vite-app_svelte (usar solo letras minusculas, no espacios) ✔ Select a framework: ›... svelte
✔ Add TypeScript? … No / Yes
✔ Add Electron updater plugin? … No / Yes
✔ Enable Electron download mirror proxy? … No / Yes

Scaffolding project in ./electron-app_svelte...
Done.

See create-vite for more details on each supported template

Currently supported template presets include:

JavaScript TypeScript
vanilla vanilla-ts
vue vue-ts
react react-ts
svelte svelte-ts
solid solid-ts

3. Scaffolding Your First Vite-Svelte WebApp Project:

Tambien puedes usar Vite para crear plantillas de proyectos Web.

Use Vite's official create command:

👉 npm create vite@latest my-vite-project_svelte

4. Resources

electron

svelte ui-library

react

tailwind

vite

About

A collection of quick tutorials of desktop apps build with Electron

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published