Setup¶
This guide covers setting up your development environment for Rayforge.
Prerequisites¶
First, install Pixi by following the instructions on the official website.
Install System Dependencies¶
Install Gtk/Adwaita system dependency (Debian/Ubuntu):
Install Project Dependencies¶
Let Pixi handle the Python dependencies:
This command reads pixi.toml
and installs all conda and pip dependencies into a local .pixi
virtual environment.
Activate the Development Shell¶
For an interactive workflow, you can activate a shell within the project's environment:
Inside this shell, you can run commands directly without the pixi run
prefix (e.g., rayforge
, pytest
). Type exit
to leave the shell.
Run the Application¶
Test that your setup works by running the application:
You may also want to use debugging in development:
Run Tests and Lint¶
Verify your setup by running the test suite:
Project Structure¶
The main source code is organized in the following directories:
rayforge/core/
: Document model and geometry handlingrayforge/pipeline/
: Core processing pipeline for generating machine operationsrayforge/machine/
: Hardware interface layer, including device driversrayforge/doceditor/
: Main document editor controller and its UIrayforge/workbench/
: 2D/3D canvas and visualization systemsrayforge/image/
: Importers for various file formats (SVG, DXF, etc.)rayforge/shared/
: Common utilities, including the tasker for background job management
Next Steps¶
After setting up your environment, continue with Submitting Changes to learn how to contribute code.