-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add beginner guide for creating azure static web apps #2643
docs: add beginner guide for creating azure static web apps #2643
Conversation
@dhanushreddy291 is attempting to deploy a commit to the neondatabase Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
3e6b86a
to
986716f
Compare
986716f
to
34b42ee
Compare
- `text`: Required text field to store the task description | ||
- `completed`: Boolean field with a default value of false to track task completion status | ||
|
||
\*We will be creating the table via Azure Functions later in the guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the * for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it a reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this as a small note to avoid using a larger admonition block. However, I'm happy to switch to an admonition if that would be preferable.
updatedOn: '2024-12-14T00:00:00.000Z' | ||
--- | ||
|
||
If you've been looking for a modern approach to deploying web applications without managing traditional server infrastructure, [Azure Static Web Apps](https://azure.microsoft.com/en-us/products/app-service/static) might be exactly what you need. At its core, it's a service optimized for hosting static assets with global distribution, but its true power lies in the seamless integration with [Azure Functions](https://azure.microsoft.com/en-us/products/functions) for backend operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about we make the first person or second person consistent throughout the blog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check now, have made it consistent in second person
Before we begin, make sure you have: | ||
|
||
- [Node.js](https://nodejs.org/) 18.x or later installed | ||
- [Visual Studio Code](https://code.visualstudio.com/) with the [Azure Static Web Apps](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps) and [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) extensions installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are mentioned in prerequisties yet being installed in the guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered omitting this from the prerequisites, but opted to include it for consistency like the guide here: https://neon.tech/guides/azure-functions-referral-system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have removed from prerequisites
- [Visual Studio Code](https://code.visualstudio.com/) with the [Azure Static Web Apps](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps) and [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) extensions installed | ||
- An [Azure account](https://azure.microsoft.com/free/) with an active subscription | ||
- A [Neon account](https://console.neon.tech/signup) and project | ||
- [Azure Functions Core Tools version 4.x](https://learn.microsoft.com/en-gb/azure/azure-functions/create-first-function-vs-code-node?pivots=nodejs-model-v4#install-or-update-core-tools) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are mentioned in prerequisties yet being installed in the guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered omitting this from the prerequisites, but opted to include it for consistency like the guide here: https://neon.tech/guides/azure-functions-referral-system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have removed from prerequisites
- An [Azure account](https://azure.microsoft.com/free/) with an active subscription | ||
- A [Neon account](https://console.neon.tech/signup) and project | ||
- [Azure Functions Core Tools version 4.x](https://learn.microsoft.com/en-gb/azure/azure-functions/create-first-function-vs-code-node?pivots=nodejs-model-v4#install-or-update-core-tools) | ||
- [Azure Static Web Apps CLI](https://www.npmjs.com/package/@azure/static-web-apps-cli) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are mentioned in prerequisties yet being installed in the guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered omitting this from the prerequisites, but opted to include it for consistency like the guide here: https://neon.tech/guides/azure-functions-referral-system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have removed from prerequisites
|
||
![Todo App Initial State](/docs/guides/swa-todo-app-intial.png) | ||
|
||
\*Note that full functionality will be available once we set up the Azure Functions backend API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it a reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this as a small note to avoid using a larger admonition block. However, I'm happy to switch to an admonition if that would be preferable.
} catch (error) { | ||
if (error.code === '42P01') { | ||
// Table does not exist, so create it | ||
await sql` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope its fine now
22618bf
to
9b16e4b
Compare
9b16e4b
to
78bfb2f
Compare
https://neon-next-git-fork-dhanushreddy291-add-docs-d7f9f6-neondatabase.vercel.app/guides/azure-todo-static-web-app