diff --git a/doc/user_guide/instructions_to_run_generated_code.md b/doc/user_guide/instructions_to_run_generated_code.md index ab20a2e5e..56bb5c7e9 100644 --- a/doc/user_guide/instructions_to_run_generated_code.md +++ b/doc/user_guide/instructions_to_run_generated_code.md @@ -268,15 +268,100 @@ Here are the detailed instructions for running the generated API Dash code in ** ## Go (net/http) -TODO +### 1. Install Go compiler + +- Windows and MacOS: check out the [official source](https://go.dev/doc/install) +- Linux: Install from your distro's package manager. + +Verify if go is installed: + +```bash +go version +``` + +### 2. Create a project +```bash +go mod init example.com/api +``` + +### 3. Run the generated code +- Paste the generated code into `main.go`. +- Build and run by `go run main.go`. ## JavaScript (axios) -TODO +The generated api code can be run in browser by using the code in an html file as demonstrated below: + +### 1. Create the html file with generated code + +Create a new file `index.html` + +```html + + +
+