Skip to content

Latest commit

Β 

History

History
58 lines (37 loc) Β· 1.83 KB

File metadata and controls

58 lines (37 loc) Β· 1.83 KB

Quick Start β€” react + electron-modular βœ…

A minimal demo app that shows how to use the @devisfuture/electron-modular package.
See the package on npm: @devisfuture/electron-modular

This repository contains a very simple Todo List application built with Electron + React used only to demonstrate how the @devisfuture/electron-modular package structures an Electron app into modular parts (main modules, IPC, preload, and renderer windows).


πŸ”§ What this project demonstrates

  • Modular main process code using @devisfuture/electron-modular (modules like add, delete, items, app, menu).
  • Simple IPC and typed messaging between renderer and main.
  • A React renderer that opens windows (Add, Delete, Main) and shows a tiny Todo list UI.
  • Lightweight, easy-to-read example code to learn integration patterns.

πŸš€ Features

  • Add and remove simple todo items
  • Demonstrates module-based windows and IPC handlers
  • Transpiles TypeScript for Electron main process and bundles React with Vite

πŸ“ Project structure (high level)

  • src/main/ β€” main process sources and modular components
  • src/renderer/ β€” React UI and window components
  • dist-main/ β€” transpiled main process output (for distribution/runtime)

🧭 Quick start

  • Install dependencies:

    npm install
  • Start development (React + Electron):

    npm run dev
  • Build the app:

    npm run build

πŸ’‘ Notes

  • This is intentionally minimal β€” the UI and data persistence are basic on purpose (the goal is to show how @devisfuture/electron-modular organizes an app, not to be a feature-complete todo app).
  • Explore src/main and src/renderer to see how modules, IPC, and windows are wired.

Author: traeop

License: MIT