Skip to content

Commit

Permalink
add img to readme codespance make public
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Mar 7, 2023
1 parent 9fa9538 commit f444ae4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,21 @@ On opening of the GitHub Codespace, some dependencies will be installed. Once th

Go and open two terminals one for the `ui` project and one for the `machinery` project.

1. Terminal A:
1. Terminal A:

cd machinery/
go run main.go run camera 80
2. Terminal B:

2. Terminal B:

cd ui/
yarn start

Once executed, a popup will show up mentioning `portforwarding`. You should see two ports being opened, one for the ui `3000` and one for the machinery `80`. `Right-click` on the port `80` and change visibility from `private` to `public`, this is required to avoid `CORS` errors.

As mentioned above, copy the hostname of the `machinery` DNS name, and past it in the `ui/src/config.json` file. Once done reload, the `ui` page in your browser, and you should be able to access the login page with the default credentials `root` and `root`.


Once executed, a popup will show up mentioning `portforwarding`. You should see two ports being opened, one for the ui `3000` and one for the machinery `80`. `Right-click` on the port `80` and change visibility from `private` to `public`, this is required to avoid `CORS` errors.

![Codespace make public](./assets/img/codespace-make-public.png)

As mentioned above, copy the hostname of the `machinery` DNS name, and past it in the `ui/src/config.json` file. Once done reload, the `ui` page in your browser, and you should be able to access the login page with the default credentials `root` and `root`.

## Develop and build

Expand Down
Binary file added assets/img/codespace-make-public.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f444ae4

Please sign in to comment.