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: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Our recommendation is to use [Visual Studio Code](https://code.visualstudio.com/
92
92
- assignment
93
93
- post-lesson quiz
94
94
95
-
>**A note about quizzes**: All quizzes are contained [in this app](https://ashy-river-0debb7803.1.azurestaticapps.net/), for48 total quizzes of three questions each. They are linked from within the lessons but the quiz app can be run locally; follow the instructionin the `quiz-app` folder. They are gradually being localized.
95
+
>**A note about quizzes**: All quizzes are contained inthe Quiz-app folder, 48 total quizzes of three questions each. They are linked from within the lessons the quiz app can be run locally or deployed to Azure; follow the instruction in the `quiz-app` folder. They are gradually being localized.
Copy file name to clipboardExpand all lines: quiz-app/README.md
+80Lines changed: 80 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,83 @@ npm run lint
31
31
See [Configuration Reference](https://cli.vuejs.org/config/).
32
32
33
33
Credits: Thanks to the original version of this quiz app: https://github.com/arpan45/simple-quiz-vue
34
+
35
+
## Deploying to Azure
36
+
37
+
Here’s a step-by-step guide to help you get started:
38
+
39
+
1. Fork the a GitHub Repository
40
+
Ensure your static web app code is in your GitHub repository. Fork this repository.
41
+
42
+
2. Create an Azure Static Web App
43
+
- Create and [Azure account](http://azure.microsoft.com)
44
+
- Go to the [Azure portal](https://portal.azure.com)
45
+
- Click on “Create a resource” and search for “Static Web App”.
46
+
- Click “Create”.
47
+
48
+
3. Configure the Static Web App
49
+
- Basics: Subscription: Select your Azure subscription.
50
+
- Resource Group: Create a new resource group or use an existing one.
51
+
- Name: Provide a name for your static web app.
52
+
- Region: Choose the region closest to your users.
53
+
54
+
-#### Deployment Details:
55
+
- Source: Select “GitHub”.
56
+
- GitHub Account: Authorize Azure to access your GitHub account.
57
+
- Organization: Select your GitHub organization.
58
+
- Repository: Choose the repository containing your static web app.
59
+
- Branch: Select the branch you want to deploy from.
60
+
61
+
-#### Build Details:
62
+
- Build Presets: Choose the framework your app is built with (e.g., React, Angular, Vue, etc.).
63
+
- App Location: Specify the folder containing your app code (e.g., / if it’s in the root).
64
+
- API Location: If you have an API, specify its location (optional).
65
+
- Output Location: Specify the folder where the build output is generated (e.g., build or dist).
66
+
67
+
4. Review and Create
68
+
Review your settings and click “Create”. Azure will set up the necessary resources and create a GitHub Actions workflow in your repository.
69
+
70
+
5. GitHub Actions Workflow
71
+
Azure will automatically create a GitHub Actions workflow file in your repository (.github/workflows/azure-static-web-apps-<name>.yml). This workflow will handle the build and deployment process.
72
+
73
+
6. Monitor the Deployment
74
+
Go to the “Actions” tab in your GitHub repository.
75
+
You should see a workflow running. This workflow will build and deploy your static web app to Azure.
76
+
Once the workflow completes, your app will be live on the provided Azure URL.
77
+
78
+
### Example Workflow File
79
+
80
+
Here’s an example of what the GitHub Actions workflow file might look like:
0 commit comments