# DeskMatMgr **Repository Path**: coldlight-cn/desk-mat-mgr ## Basic Information - **Project Name**: DeskMatMgr - **Description**: Desktop material management system developed by Electron+Vue3+TypeScript - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-24 - **Last Updated**: 2025-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# desk-mat-mgr A material management system for applications based on **Vue3** + **Electron** TypeScript, including **ViteJS** and **Electron Builder**.
## Getting started ### Install dependencies ⏬ ```bash npm install ``` ### Start developing ⚒️ ```bash npm run dev ``` ## Additional Commands ```bash npm run dev # starts application with hot reload npm run build # builds application, distributable files can be found in "dist" folder # OR npm run build:win # uses windows as build target npm run build:mac # uses mac as build target npm run build:linux # uses linux as build target ``` Optional configuration options can be found in the [Electron Builder CLI docs](https://www.electron.build/cli.html). ## Project Structure ```bash - scripts/ # all the scripts used to build or serve your application, change as you like. - src/ - main/ # Main thread (Electron application source) - renderer/ # Renderer thread (VueJS application source) ``` ## Using static files If you have any files that you want to copy over to the app directory after installation, you will need to add those files in your `src/main/static` directory. Files in said directory are only accessible to the `main` process, similar to `src/renderer/assets` only being accessible to the `renderer` process. Besides that, the concept is the same as to what you're used to in your other front-end projects. #### Referencing static files from your main process ```ts /* Assumes src/main/static/myFile.txt exists */ import {app} from 'electron'; import {join} from 'path'; import {readFileSync} from 'fs'; const path = join(app.getAppPath(), 'static', 'myFile.txt'); const buffer = readFileSync(path); ```