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/static-web-apps/add-api.md
+34-9Lines changed: 34 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,24 @@ You can add serverless APIs to Azure Static Web Apps that are powered by Azure F
21
21
22
22
- Azure account with an active subscription.
23
23
- If you don't have an account, you can [create one for free](https://azure.microsoft.com/free).
24
-
-[Visual Studio Code](https://code.visualstudio.com/)
25
-
-[Azure Static Web Apps extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps) for Visual Studio Code
26
-
-[Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) for Visual Studio Code
27
-
-[Node.js](https://nodejs.org/download/) to run the frontend app and API
24
+
-[Visual Studio Code](https://code.visualstudio.com/).
25
+
-[Azure Static Web Apps extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps) for Visual Studio Code.
26
+
-[Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) for Visual Studio Code.
27
+
-[Node.js v18](https://nodejs.org/en/download) to run the frontend app and API.
28
+
29
+
> [!TIP]
30
+
> You can use the [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md) tool to manage multiple versions of Node.js on your development system.
31
+
> On Windows, [NVM for Windows](https://github.com/coreybutler/nvm-windows/blob/master/README.md) can be installed via Winget.
28
32
29
33
## Create the static web app
30
34
31
-
Before adding an API, create and deploy a frontend application to Azure Static Web Apps. Use an existing app that you've already deployed or create one by following the [Building your first static site with Azure Static Web Apps](getting-started.md) quickstart.
35
+
Before adding an API, create and deploy a frontend application to Azure Static Web Apps by following the [Building your first static site with Azure Static Web Apps](getting-started.md) quickstart.
36
+
37
+
Once you have a frontend application deployed to Azure Static Web Apps, [clone your app repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository). For example, to clone using the `git` command line:
In Visual Studio Code, open the root of your app's repository. The folder structure contains the source for your frontend app and the Static Web Apps GitHub workflow in _.github/workflows_ folder.
34
44
@@ -226,9 +236,12 @@ To run your frontend app and API together locally, Azure Static Web Apps provide
RunthefrontendappandAPItogetherbystartingtheappwiththeStaticWebAppsCLI. RunningthetwopartsofyourapplicationthiswayallowstheCLItoserveyourfrontend's build output from a folder, and makes the API accessible to the running app.
272
285
@@ -306,9 +319,11 @@ Run the frontend app and API together by starting the app with the Static Web Ap
306
319
307
320
---
308
321
309
-
1.WhentheCLIprocessesstart, accessyourappat`http://localhost:4280/`. NoticehowthepagecallstheAPIanddisplaysitsoutput, `Hello from the API`.
Copy file name to clipboardExpand all lines: includes/static-web-apps/static-web-apps-tutorials-portal-view-website.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ The Static Web Apps *Overview* window displays a series of links that help you i
16
16
17
17
:::image type="content" source="../../articles/static-web-apps/media/getting-started/overview-window.png" alt-text="Screenshot of Azure Static Web Apps overview window.":::
18
18
19
-
1. Selecting on the banner that says, _Select here to check the status of your GitHub Actions runs_takes you to the GitHub Actions running against your repository. Once you verify the deployment job is complete, then you can go to your website via the generated URL.
19
+
1. Selecting _GitHub Action runs_ in the Overview takes you to the GitHub Actions running against your repository. Verify that the deployment action is complete before continuing.
20
20
21
-
1. Once GitHub Actions workflow is complete, you can select the _URL_ link to open the website in new tab.
21
+
1. Once the GitHub Actions workflow is complete, you can select the _URL_ link to open the website in new tab.
0 commit comments