Installation and Setup¶
This guide will walk you through the process of installing and setting up the Geant4 Geometry Editor.
Prerequisites¶
Before installing the Geant4 Geometry Editor, ensure you have the following:
- Node.js (v18.0.0 or higher)
- npm (v9.0.0 or higher)
- A modern web browser (Chrome, Firefox, Safari, or Edge)
Installation¶
-
Clone the repository:
-
Install dependencies:
-
Start the development server:
-
Open your browser and navigate to the URL shown in the terminal (usually
http://localhost:5173).
Building for Production¶
To build the application for production and serve it:
The production server runs on port 3001 by default and serves the built app plus a JSON file-storage API.
Running Tests¶
This runs all Vitest unit tests (116 tests across 8 test files covering unit conversion, material colours, geometry icons, geometry operations, compound-ID propagation, property handlers, geometry handlers, and JSON import / export).
Troubleshooting¶
Common Issues¶
- Dependency errors during installation
- Try clearing npm cache:
npm cache clean --force - Update npm:
npm install -g npm -
Then reinstall:
npm install -
Application doesn't start
- Check if the port is already in use
- Verify Node.js version:
node --version -
Check for errors in the console
-
3D viewer doesn't render properly
- Ensure your graphics drivers are up to date
- Try a different browser
- Check if WebGL is enabled in your browser
For more help, please open an issue on our GitHub repository.