-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Install Node.js (LTS, v18 or newer) from https://nodejs.org. This gives you node and npm.
Check it's installed:
node -v
npm -vOn Windows, also have Git (optional, for version control) and a code editor like VS Code.
npm installnpm run devThis starts Vite and opens the Electron app pointing at it. Edits to React files refresh live.
npm startnpm run distOutput lands in the release/ folder. On Windows you'll get an NSIS installer and a portable .exe. macOS .dmg builds can't be cross-compiled from Windows/Linux — see .github/workflows/build-mac.yml, which builds it on a GitHub Actions macOS runner instead.
electron/
main.cjs Electron main process — window, file save/load, PDF export
preload.cjs Safe bridge between UI and file system
src/
main.jsx React entry
App.jsx Layout, toolbar, state
Editor.jsx Left-side form
Preview.jsx Right-side live resume render (2 templates)
data.js The resume JSON model
ai.js AI stub — fill in later
styles.css All styling + print rules
See the comments in src/ai.js. The key rule: do the actual API call in
electron/main.cjs (the main process) so your API key is never exposed in the
UI. Expose it through preload.cjs the same way save/load/export work, then
call it from ai.js.