Skip to content

Commit

Permalink
closes #9, closes #10, closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
dantelmomsft committed Sep 27, 2023
1 parent 66d4fae commit c616711
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# Java IDE
.idea
.vscode
*.iml

# Byte-compiled / optimized / DLL files
Expand Down
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Start App ",
"type": "shell",
"command": "${workspaceFolder}/app/start.sh",
"windows": {
"command": "pwsh ${workspaceFolder}/app/start.ps1"
},
"presentation": {
"reveal": "always"
},
"options": {
"cwd": "${workspaceFolder}/app"
},
"problemMatcher": []
}
]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ either by deleting the resource group in the Portal or running `azd down`.
Execute the following command, if you don't have any pre-existing Azure services and want to start from a fresh deployment.

1. Run `azd auth login`
3. You can clone this repo and change directory to the root of the repo. Or you can run `azd init -t Azure-Samples/azure-search-openai-demo-java`.
2. Run `azd up` - This will provision Azure resources and deploy this sample to those resources, including building the search index based on the files found in the `./data` folder.
* For the target location, the regions that currently support the models used in this sample are **East US**, **France Central**, **South Central US**, **UK South**, and **West Europe**. For an up-to-date list of regions and models, check [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/models)
3. After the application has been successfully deployed you will see a URL printed to the console. Click that URL to interact with the application in your browser.
Expand Down Expand Up @@ -128,7 +129,7 @@ If you've changed the infrastructure files (`infra` folder or `azure.yaml`), the

### Running locally

1. Run `azd login`
1. Run `az login`
2. Change dir to `app`
3. Run `./start.ps1` or `./start.sh` or run the "VS Code Task: Start App" to start the project locally.
4. Wait for the spring boot server to start and refresh your browser to localhost:8080
Expand Down

0 comments on commit c616711

Please sign in to comment.