You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,18 +11,30 @@ A reference .NET application implementing an eCommerce web site using a services
11
11
### Prerequisites
12
12
13
13
- Clone the eShop repository: https://github.com/Azure-Samples/eshopOnAzure
14
-
- (Windows only) Install Visual Studio. Visual Studio contains tooling support for .NET Aspire that you will want to have. [Visual Studio 2022 version 17.10 Preview](https://visualstudio.microsoft.com/vs/preview/).
15
-
- During installation, ensure that the following are selected:
- Install [Visual Studio 2022 version 17.10 or newer](https://visualstudio.microsoft.com/vs/).
18
+
- Select the following workloads:
16
19
-`ASP.NET and web development` workload.
17
20
-`.NET Aspire SDK` component in `Individual components`.
18
-
- Install the latest [.NET 8 SDK](https://github.com/dotnet/installer#installers-and-binaries)
19
-
- On Mac/Linux (or if not using Visual Studio), install the Aspire workload with the following commands:
21
+
- Optional: `.NET Multi-platform App UI development` to run client apps
22
+
23
+
#### Mac, Linux, & Windows without Visual Studio
24
+
- Install the latest [.NET 8 SDK](https://dot.net/download?cid=eshop)
25
+
- Install the [.NET Aspire workload](https://learn.microsoft.com/dotnet/aspire/fundamentals/setup-tooling?tabs=dotnet-cli%2Cunix#install-net-aspire) with the following commands:
> Note: When running on Mac with Apple Silicon (M series processor), Rosetta 2 for grpc-tools.
26
38
27
39
### Running the solution
28
40
@@ -40,18 +52,34 @@ dotnet run --project src/eShop.AppHost/eShop.AppHost.csproj
40
52
```
41
53
then look for lines like this in the console output in order to find the URL to open the Aspire dashboard:
42
54
```sh
43
-
Now listening on: http://localhost:18848
55
+
Login to the dashboard at: http://localhost:19888/login?t=uniquelogincodeforyou
44
56
```
45
57
46
-
### Sample data
58
+
> You may need to install ASP.NET Core HTTPS development certificates first, and then close all browser tabs. Learn more at https://aka.ms/aspnet/https-trust-dev-cert
47
59
48
-
The sample catalog data is defined in [catalog.json](https://github.com/dotnet/eShop/blob/main/src/Catalog.API/Setup/catalog.json). Those product names, descriptions, and brand names are fictional and were generated using [GPT-35-Turbo](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/chatgpt), and the corresponding [product images](https://github.com/dotnet/eShop/tree/main/src/Catalog.API/Pics) were generated using [DALL·E 3](https://openai.com/dall-e-3).
60
+
### Azure Open AI
61
+
62
+
When using Azure OpenAI, inside *eShop.AppHost/appsettings.json*, add the following section:
63
+
64
+
```json
65
+
"ConnectionStrings": {
66
+
"OpenAi": "Endpoint=xxx;Key=xxx;"
67
+
}
68
+
```
69
+
70
+
Replace the values with your own. Then, in the eShop.AppHost *Program.cs*, set this value to **true**
71
+
72
+
```csharp
73
+
booluseOpenAI=false;
74
+
```
75
+
76
+
Here's additional guidance on the [.NET Aspire OpenAI component](https://learn.microsoft.com/dotnet/aspire/azureai/azureai-openai-component?tabs=dotnet-cli).
49
77
50
-
## Use Azure Developer CLI
78
+
###Use Azure Developer CLI
51
79
52
80
You can use the [Azure Developer CLI](https://aka.ms/azd) to run this project on Azure with only a few commands. Follow the next instructions:
- Install the latest or update to the latest [Azure Developer CLI (azd)](https://aka.ms/azure-dev/install).
55
83
- Log in `azd` (if you haven't done it before) to your Azure account:
56
84
```sh
57
85
azd auth login
@@ -61,8 +89,8 @@ azd auth login
61
89
azd init
62
90
```
63
91
- During init:
64
-
- Select `Use code in the current directory`. Azd will automatically detect the Dotnet Aspire project.
65
-
- Confirm `.Net (Aspire)` and continue.
92
+
- Select `Use code in the current directory`. Azd will automatically detect the .NET Aspire project.
93
+
- Confirm `.NET (Aspire)` and continue.
66
94
- Select which services to expose to the Internet (exposing `webapp` is enough to test the sample).
67
95
- Finalize the initialization by giving a name to your environment.
68
96
@@ -79,7 +107,11 @@ Notes:
79
107
80
108
## Contributing
81
109
82
-
For more information on contributing to this repo, please read [the contribution documentation](./CONTRIBUTING.md) and [the Code of Conduct](CODE-OF-CONDUCT.md).
110
+
For more information on contributing to this repo, read [the contribution documentation](./CONTRIBUTING.md) and [the Code of Conduct](CODE-OF-CONDUCT.md).
111
+
112
+
### Sample data
113
+
114
+
The sample catalog data is defined in [catalog.json](https://github.com/dotnet/eShop/blob/main/src/Catalog.API/Setup/catalog.json). Those product names, descriptions, and brand names are fictional and were generated using [GPT-35-Turbo](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/chatgpt), and the corresponding [product images](https://github.com/dotnet/eShop/tree/main/src/Catalog.API/Pics) were generated using [DALL·E 3](https://openai.com/dall-e-3).
0 commit comments