Skip to content

Commit c0042de

Browse files
Update example apps (#48)
* remove mod files * update README
1 parent 4fdd236 commit c0042de

12 files changed

Lines changed: 74 additions & 496 deletions

File tree

example/console_app/console_example/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,26 @@ Add the following key-values to the App Configuration store and leave **Label**
3232

3333
### Setup
3434

35-
Set the connection string as an environment variable:
35+
1. Initialize a new Go module.
3636

37-
```bash
38-
# Windows
39-
set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
37+
```bash
38+
go mod init console-example-app
39+
```
40+
1. Add the Azure App Configuration provider as a dependency.
4041

41-
# Linux/macOS
42-
export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
43-
```
42+
```bash
43+
go get github.com/Azure/AppConfiguration-GoProvider/azureappconfiguration
44+
```
45+
46+
1. Set the connection string as an environment variable:
47+
48+
```bash
49+
# Windows
50+
set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
51+
52+
# Linux/macOS
53+
export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
54+
```
4455

4556
### Run the Application
4657

example/console_app/console_example/go.mod

Lines changed: 0 additions & 17 deletions
This file was deleted.

example/console_app/console_example/go.sum

Lines changed: 0 additions & 46 deletions
This file was deleted.

example/console_app/console_example_refresh/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,26 @@ Add the following key-values to the App Configuration store and leave **Label**
3232

3333
### Setup
3434

35-
Set the connection string as an environment variable:
35+
1. Initialize a new Go module.
3636

37-
```bash
38-
# Windows
39-
set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
37+
```bash
38+
go mod init console-example-refresh
39+
```
40+
1. Add the Azure App Configuration provider as a dependency.
4041

41-
# Linux/macOS
42-
export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
43-
```
42+
```bash
43+
go get github.com/Azure/AppConfiguration-GoProvider/azureappconfiguration
44+
```
45+
46+
1. Set the connection string as an environment variable:
47+
48+
```bash
49+
# Windows
50+
set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
51+
52+
# Linux/macOS
53+
export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
54+
```
4455

4556
### Run the Application
4657

example/console_app/console_example_refresh/go.mod

Lines changed: 0 additions & 17 deletions
This file was deleted.

example/console_app/console_example_refresh/go.sum

Lines changed: 0 additions & 46 deletions
This file was deleted.

example/gin_web_app/gin-example-refresh/README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,27 @@ Add the following key-values to the App Configuration store and leave **Label**
3232

3333
### Setup
3434

35-
Set the connection string as an environment variable:
35+
1. Initialize a new Go module.
3636

37-
```bash
38-
# Windows
39-
set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
37+
```bash
38+
go mod init gin-example-refresh
39+
```
40+
1. Add the required dependencies.
4041

41-
# Linux/macOS
42-
export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
43-
```
42+
```bash
43+
go get github.com/Azure/AppConfiguration-GoProvider/azureappconfiguration
44+
go get github.com/gin-gonic/gin
45+
```
46+
47+
1. Set the connection string as an environment variable:
48+
49+
```bash
50+
# Windows
51+
set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
52+
53+
# Linux/macOS
54+
export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
55+
```
4456

4557
### Run the Application
4658

example/gin_web_app/gin-example-refresh/go.mod

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)