An interface for operating, reading, and recording measurements from the SMU unit.
Tools required for frontend development:
- For ease of use, it's recommended to use Git Bash instead of PowerShell
- NodeJS
- It is also recommended to install npm-run-all
- TypeScript
- electron-builder
npm i --save-dev electron-builder
Technologies:
- Electron
- Vite
- React
Backend - first-time setup (one-time configuration)
Before running the application in developer mode, configure the backend:
cd backend
python -m venv .venv
Activate the virtual environment:
- For Windows
.venv\Scripts\activate
- Linux / macOS
source .venv/bin/activate
Install Python dependencies:
pip install -r requirements.txt
Creating the virtual environment and installing dependencies is done only once. For future runs, just activate the environment again.
- Build
npm run build
- Running the application in developer mode (A Vite local server is configured, so changes made to the project are immediately visible in developer mode without the need for refreshing)
npm run dev
- Building the final application (On Windows, you may need to open Git Bash or, if using a console within an editor such as VS Code, run the editor in administrator mode)
- For Windows
npm run dist:win
- For Mac
npm run dist:mac
- For Linux
npm run dist:linux
