https://github.com/jongio/hello-ai
https://github.com/jongio/hello-ai
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jongio/hello-ai
- Owner: jongio
- Created: 2024-01-26T21:53:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-02T23:39:43.000Z (about 1 year ago)
- Last Synced: 2025-04-24T04:46:09.468Z (about 2 months ago)
- Language: Python
- Size: 1.34 MB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-ai
#### Setup
1. Fork the repo to your own account, include ALL branches.
1. Create a new Codespace.
1. Open in VS Code Desktop (via File menu).#### Provision
1. Run `azd up` to provision only the Azure AI service. Choose "east us 2" region.#### Run Locally
1. Hit F5
1. Go to http://localhost:3000 and view the application### Provision all resources to Azure
1. Run `azd env set WORKSPACE azure`
1. Run `azd up`. This will provision all Azure resources (AKS, Service Bus, etc)
1. Open WEB IP, which will be outputted to the terminal.### Setup GitHub Action
1. Run `azd pipeline config`
1. Complete all the prompts
1. View the actions either in VS Code `GitHub Actions` extension or on GitHub.com#### Login
1. Run `azd auth login`
1. AZ Login `az login --scope https://graph.microsoft.com/.default`
1. AZ login from within **Codespaces on Web** (due to this issue: https://github.com/Azure/azure-cli/issues/20315)
- Login. It will fail. Copy the "localhost" URL from the failed redirect.
- In Codespaces, open a new terminal.
- Run `curl {the url you copied earlier}`
- Close that terminal.
- Go back to other terminal where you ran `az login`
- It should show you your subscriptions.
- Continue to next step
1. Run `az account set -n {sub}` to set right subscription.