Gaphor en un contenedor

En lugar de crear un entorno de desarrollo local, la forma más sencilla de contribuir al proyecto es usar GitHub Codespaces.

GitHub Codespaces

Siga estos pasos para abrir Gaphor en un Codespace:

  1. Navegar hasta https://github.com/gaphor/gaphor

  2. Haga clic en el menú desplegable Código y seleccione la opción Abrir con Codespaces.

  3. Seleccione + Codespace nuevo en la parte inferior del panel.

Para más información, consulte la documentación de GitHub.

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