This is an example of a multi-repository Codespace. The code for the frontend is in this repo. The backend is in a separate repo.
The frontend is an Angular app and the backend is a Spring Boot app. The frontend is configured to proxy requests to the backend.
Access to the backend repo is configured in devcontainer.json.
The backend repo is cloned into the Codespace in the devcontainer.json
updateContentCommand
script.
There is also a VS Code workspace file to configure a workspace with both repos added to the workspace.
Due to a known issue with Codespaces port visibility and CORS, you will need to open this codespace in VS Code Desktop.
Once the codespace is opened, open the VS Code workspace and run the start backend
task. This will start the Spring Boot backend.
Then run the start frontend
task. This will start the Angular app and proxy requests to the backend.
Once the frontend is running, you can access the app at https://localhost:4200.