Project Structure
File Structure
The repository root contains configuration files, licenses, and READMEs. After building the app, an out folder is generated with the bundled files.
Root Overview
src– Contains the application’s source code.test– Holds end-to-end tests between the frontend and backend.tutorials– Markdown files (like this guide) used in generated JSDoc..env– Environment variables (see README and Vite docs).- Config Files: For Electron-Vite projects, configurations such as
electron.vite.config.jsandvite.config.jsare in the root.
Inside src
main&preload: Electron-specific files for starting the app.renderer: Contains the main application:assets: Resources such as images and SVGs.components: React components (each in its own folder with tests).hooks: Custom React hooks (follow Rules of Hooks).services: Business logic and API calls (using Axios).styles: TailwindCSS base classes and custom styles (defined ininput.cssand compiled tooutput.css).utils: Shared utility functions.
Last updated on