-
Notifications
You must be signed in to change notification settings - Fork 0
Project Structure
Edward edited this page Nov 21, 2024
·
3 revisions
The project is organized into the following folders and files:
The source files for the project. This folder contains all the app's essential logic and front-end components.
-
assets/
- Contains static assets like CSS files, images, or fonts.
-
components/
- Global components that can be reused across views (e.g.,
Search.vue).
- Global components that can be reused across views (e.g.,
-
electron/
- main.js: Initializes the Electron app and connects it to the database.
- database.js: Manages SQLite connections and provides methods to query the database.
- preload.js: Exposes a secure API to the renderer process, preventing direct access to backend functions.
-
router/
- Contains the routing logic to switch between different views (
index.js).
- Contains the routing logic to switch between different views (
-
views/
- Holds page-specific
.vuefiles that define the HTML, JavaScript, and CSS for each route.
- Holds page-specific
-
App.vue
- The root component of the Vue application.
-
main.js
- Initializes the Vue application and mounts it to the DOM.
- Contains CSV files that serve as data tables for the SQLite database.
- Contains the production-ready build of the app after running
npm run build. This is what is deployed to users.
- Automatically generated by
npm install. Holds all project dependencies. Excluded from version control (.gitignore).
- Contains the
index.htmltemplate used by Vite to build the app.
- Specifies files and folders to be excluded from version control.
- Defines metadata, dependencies, and scripts for managing the project.
- Automatically generated by
npm. Ensures consistent dependency resolution across environments.
- Configures the Vite build tool.
- The SQLite database containing project data.
- Stores raw data in CSV format that populates the database.
- The project’s main documentation file, displayed on the GitHub repository’s home page.
This structure provides a clear and concise overview of the project. Files and folders have been grouped by functionality, with connections between components explained to improve navigation for new contributors.