IMPORTANT: Click & open README.md for full instruction. The preview gets cut off.
A simple ElectronJS starter template for building desktop applications using HTML, CSS, and JavaScript.
This repo is part of my YouTube tutorial on setting up your very first Electron desktop app. It’s designed to be simple, beginner-friendly, and easy to customize for any project.
This repo is a part of my Youtube video tutorial on how to set up your very first desktop application. See the video here: https://www.youtube.com/watch?v=btxGSJ3Dh8E&t=373s
This repo is only for the basic Electron template that you can clone to build whatever you want. But if you're interested in a beginner demonstration tutorial too, see this repositary for a simple Calendar Widget: https://github.com/nasha-wanich/little-calendar
- Basic Electron setup
- Single window configuration
- Frameless, non-resizable window
- Draggable app window using CSS
- Plain HTML / CSS / JavaScript (no frameworks)
You can now customize the UI, add features, or turn this into any desktop app you want.
This template is great if you are:
- New to ElectronJS
- A designer or frontend developer exploring desktop apps
- Building quick prototypes or side projects
- Looking for a clean starting point without extra complexity
If you’re looking for a guided beginner project after setting up this template, check out this calendar demo repo: https://github.com/nasha-wanich/little-calendar
electron-app-template
├── node_modules
├── main.js
├──index.html
├── styles.css
├── script.js
├── package.json
└── package-lock.json
-
main.jsElectron’s main process. Creates the app window and loads the HTML file.
-
index.htmlThe main UI layout of your desktop app.
-
styles.cssStyles for your app UI, including draggable window behavior.
-
script.jsFrontend JavaScript logic for interactivity.
-
package.jsonApp configuration, dependencies, and run scripts.
Before using this template, make sure you have:
- Node.js
- Homebrew (macOS)
- A code editor (VS Code recommended)
MacOS: Homebrew (https://brew.sh)
Window: Chocolatey (https://chocolatey.org/install)
You can install Node.js in two ways:
brew install nodeVerify installation:
node -v
npm -vIf both commands return version numbers, you’re good to go
Download Node.js directly from: https://nodejs.org
and follow their installation instructions.
gitclone https://github.com/nasha-wanich/electron-app-template.git
cd electron-app-templatenpm installnpm run startThis will launch a simple Electron desktop window.
- Modify
index.htmlto build your app layout - Style your app UI in
styles.css - Add your app logic in
script.js - Adjust window behavior in
main.js(ex. size, transparency etc.)
If you want a step-by-step desktop app beginner tutorial, check out this repo where we build a calendar widget together: https://github.com/nasha-wanich/little-calendar