How cassidoo/todometer works
Project type and purpose
• This is a desktop‐only, full‐stack Electron application that bundles a React based UI (the “renderer” process) together with a Node/Electron “main” process and a “preload” script to safely bridge between them.
• Purpose: a simple meter‐based to-do list that persists data locally (via browser localStorage or file) and can fire reminder notifications.
File structure
• Top‐level directories:
• src/main – Electron’s Main process code (creates BrowserWindow, handles app events)
• src/preload – Electron Preload script (exposes a controlled IPC API to the renderer)
• src/renderer – React application (UI, components, state, styling, hooks)
• src/scripts – build and watch scripts for packaging and hot‐reload
• Config files:
• vite.config.js in main, preload, and renderer subfolders—each bundling code for its respective process
• package.json with scripts for dev vs. production, packaging (electron‐pack)
• Tests: a single App.test.jsx for smoke testing of core UI
Key insights from README
• Uses Electron + React + Vite
• Development flow: “npm run dev” spawns the Electron shell with hot‐reload
• Packaging flow: postinstall + pre‐electron-pack + electron-pack to produce distributables for Windows/Mac/Linux