GitHub Codespaces allows you to develop in the cloud, with a fully featured development environment that is spun up in seconds. It is a great way to develop your applications without having to install anything on your machine and have a consistent development environment across your team without having to worry about it.
But what if you want to develop a GUI application? How can you run it on the cloud since it’s a headless environment? Well, at first glance, you can’t. But it’s possible, and I will show you how to do it in two different ways.
This started as a single post, but due to its size I decided to split it into three posts:
- In the second post, GitHub Codespaces: Developing GUI Applications 2/3. I will show you how to run a GUI application on a Codespace using VNC.
- In the third post, GitHub Codespaces: Developing GUI Applications 3/3. I will show you how to run a GUI application on a Codespace using X11 Server.
Keep in mind that both options are not mutually exclusive. You can use both at the same time.
If you are not familiar with Codespaces customization head up to Introduction to dev containers to learn how to customize the Codespaces environment by adding a
devcontainer.json file to your repository or just skip to the posts, since they are enough to get you started.