File: getting_started.md

package info (click to toggle)
golang-github-microsoft-dev-tunnels 0.0.25-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,988 kB
  • sloc: cs: 9,969; java: 2,767; javascript: 328; xml: 186; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# Getting Started

To use the example you must do the following setup first:

1. Create a tunnel on the CLI or another SDK and put the tunnelId and clusterId in the constants section of example.go
2. Create ports on the tunnel that you want to be hosted
3. Get a tunnels access token and paste it in the return value of getAccessToken() in example.go or set it as the TUNNELS_TOKEN environment variable
4. Start hosting the tunnel either on the CLI or on a different SDK
5. Run example.go with the command `go run example.go`