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
Copy file name to clipboardExpand all lines: articles/communication-services/samples/chat-hero-sample.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,29 +55,25 @@ Below you'll find more information on prerequisites and steps to set up the samp
55
55
- Create an Azure account with an active subscription. For details, see [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
56
56
- Create an Azure Communication Services resource. For details, see [Create an Azure Communication Resource](../quickstarts/create-communication-resource.md). You'll need to record your resource **connection string** for this quickstart.
57
57
58
-
## Locally deploying the service & client app
59
-
60
-
The single threaded chat sample is essentially two "applications" a client and server application.
61
-
62
-
Follow the instruction from [Local run](./chat-hero-sample.md#local-run), this will start up the chat front end service. When the server app is visited
63
-
from the browser, it will redirect traffic towards the locally deployed chat front end service.
64
-
65
-
You can test the sample locally by opening multiple browser sessions with the URL of your chat to simulate a multi-user chat.
66
-
67
58
## Before running the sample for the first time
68
59
69
60
1. Open an instance of PowerShell, Windows Terminal, Command Prompt or equivalent and navigate to the directory that you'd like to clone the sample to.
3. Get the `Connection String` and `Endpoint URL` from the Azure portal. For more information on connection strings, see [Create an Azure Communication Services resources](../quickstarts/create-communication-resource.md)
72
63
4. Once you get the `Connection String` and `Endpoint URL`, Add both values to the **Server/appsettings.json** file found under the Chat Hero Sample folder. Input your connection string in the variable: `ResourceConnectionString` and endpoint URL in the variable: `EndpointUrl`.
73
64
74
-
###Local run
65
+
## Local run
75
66
76
67
1. Set your connection string in `Server/appsettings.json`
77
68
2. Set your endpoint URL string in `Server/appsettings.json`
78
69
3.`npm run setup` from the root directory
79
70
4.`npm run start` from the root directory
80
71
72
+
The single threaded chat sample is essentially two "applications" a client and server application. When the server app is visited
73
+
from the browser, it will redirect traffic towards the locally deployed chat front end service.
74
+
75
+
You can test the sample locally by opening multiple browser sessions with the URL of your chat to simulate a multi-user chat.
0 commit comments