Skip to content

Commit 5387db7

Browse files
committed
fix: azd up in codespaces
1 parent c43b00e commit 5387db7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,23 @@ EMAIL_SENDER_APP_PASSWORD="foobar"
8989

9090
**Important: Please follow [this guide](https://support.microsoft.com/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9) to generate an Application Password if you are using MFA.**
9191

92-
To run the sample, run the following command which will start the web app and the API locally:
92+
To run the sample, run the following commands, which will start the web app, and the API locally.
93+
94+
1. Open a terminal and navigate to the root of the project, then run the API server first:
95+
96+
```bash
97+
npm install --prefix api
98+
npm start --prefix api
99+
```
100+
101+
2. Open another terminal and navigate to the root of the project, then run the webapp server:
93102

94103
```bash
95104
npm install
96105
npm start
97106
```
98107

99-
Open the URL `http://localhost:4280` in your browser to start chatting with the Assistant.
100-
101-
Note that the documents are uploaded automatically when deploying the sample to Azure with `azd up`.
108+
Open the URL `http://localhost:4280` in your browser to interact with the Assistant.
102109

103110
### Deploy the sample to Azure
104111

swa-cli.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
"configurations": {
44
"azure-openai-assistant-javascript": {
55
"appLocation": "src",
6-
"apiLocation": "api",
6+
"apiLocation": "",
77
"outputLocation": "dist",
88
"apiLanguage": "node",
99
"apiVersion": "18",
1010
"appBuildCommand": "npm run build",
1111
"apiBuildCommand": "npm run build --if-present",
1212
"run": "npm run dev",
1313
"appDevserverUrl": "http://localhost:5173",
14+
"apiDevserverUrl": "http://localhost:7071",
1415
"env": "default",
1516
"appName": "webapp"
1617
}

0 commit comments

Comments
 (0)