playnite-web-app • Docs
playnite-web-app / contributing/development-environment/codespaces
Install the following software on your local machine:
- vscode
- XServer (for running Cypress tests).
- For OSX, recommend: XQuartz
- For Windows, still need a recommendation.
- gh CLI
First, enable X11 forwarding for your SSH configuration by editing ~/.ssh/config
.
Host *
ForwardX11 yes
Once an XServer is installed, such as XQuartz, ensure it is configured to Authenticate and Allow connections from network clients. This can be done via the security settings of XQuartz.
Also ensure XQuartz starts at login.
Finally, sign out completely and sign back in.
Next, allow connections from your host machine's IP address. Here is an example is bash:
IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $IP
# If xhost is not found, try:
/usr/X11/bin/xhost + $IP
- Fork the playnite-web repo
- Start a code space and open in vscode.
- Run
yarn
- Run
yarn nx run playnite-web-app:start
- In vscode, forward port 3000. This can be found in same pane as the terminal.
- Open http://localhost:3000.
- Continue to see commands for additional commands.
- Open terminal on local machine.
- Connect to code space via gh CLI and forward x11 via
gh cs ssh -- -XY
and then choose your code space. - You can now run
yarn nx run playnite-web-app:test/components
andyarn nx run playnite-web-app:test/e2e
in this terminal.