Gaphor u kontejneru

Umjesto postavljanja lokalnog razvojnog okruženja, najlakši način doprinositi projektu je putem GitHub Codespaces.

GitHub Codespaces

Za otvaranje Gaphora u Codespace, slijedi ove korake:

  1. Idi na https://github.com/gaphor/gaphor

  2. Pritisni padajući izbornik za kod i odaberi opciju Otvori pomoću Codespaces.

  3. Odaberi + Novi codespace na dnu ploče.

Za daljnje informacije pogledaj GitHub documentation.

Remote access to Gaphor graphic window with Codespaces

When using Codespaces, chances are that you also want to interact with the graphical window of Gaphor.

This is facilitated in Gaphor by use of container feature called desktop-lite. This feature is activated by default in the Gaphor’s devcontainer.json file.

Notice the webPort/vncPort and password values. These are used in subsequent steps.

    		"desktop-lite": {
			"password": "vscode",
			"webPort": "6080",
			"vncPort": "5901"
		},

There are two options:

Using a local VNC viewer

  1. Download and install VNC viewer of your choice (e.g. realvnc)

  2. Specify remote hostname as localhost and port as 5901 and connect VNC. The port number should be same as specified in attribute vncPort

  3. Upon debugging/running Gaphor the familiar Graphic window should be displayed in VNC view

Using noVNC viewer on the Browser

  1. This is based on noVNC application

  2. Open the browser on your local machine and give address as http://127.0.0.1:6080/. The port number should be same as specified in attribute webPort

  3. A noVNC window will open, click on Connect and provide password as vscode. The password should be same as specified in attribute password

  4. Upon debugging/running Gaphor the familiar Graphic window should be displayed in noVNC view on Browser