-
Go to GitHub repo scrumdojo/quizmaster-php and create a Codespace.
-
Select Machine type depending on your IDE:
- VS Code: 2 cores / 8GB is enough.
- Jetbrains IDE: 4 cores / 16GB.
-
The codespace opens a web version of VS Code in a new browser tab.
Congratulations, you're good to go! You can either work from the browser window, or open the codespace from your VS Code.
If you want to use IntelliJ IDEA or Cursor, you need to setup SSH access to the codespace.
You need GitHub CLI to set it up. Install it if you haven't already.
-
Create an SSH key (local machine)
On your local machine, go to
~/.sshand run:ssh-keygen -t rsa -b 4096 -C “your.email@example.com” -f ~/.ssh/quizmaster_codespace -
Add public key to the Codespace (in your codespace)
In your Codespace
mkdir ~/.ssh && cd ~/.sshand add the content of~/.ssh/quizmaster_codespace.pubfrom your local machine toauthorized_keys.echo "<content of quizmaster_codespace.pub>" >> ~/.ssh/authorized_keys
-
Configure Codespace SSH (local machine)
gh auth login gh codespace list gh codespace ssh --config
Paste the output of the last command to
~/.ssh/configon your local machine.
Make sure the Codespace is running on https://github.com/codespaces.
-
On the IntelliJ IDEA Welcome screen, select "Remote Development > SSH". Press New Project button.
-
Copy
Hostfrom your local~/.ssh/config(see above) -
Create a new Connection (cog icon on the right):
- Host:
<Host from your ~/.ssh/config> - Port:
2222 - Authentication type: OpenSSH config and authentication agent
- Username: empty
- Password: empty
- Host:
-
Connect to the newly created Connection.
-
In the "Choose IDE and Project" screen
- Select IDE version (recommended latest non-RC release)
- Select Project directory:
/workspaces/quizmaster-php
