aswa-workshop
aswa-workshop copied to clipboard
Azure Static Web Apps
Azure Static Web Apps is a preview service which allows you to automatically build and deploy full stack web applications from a GitHub repository to Azure. With Azure Static Web Apps you're able to develop using the front end framework you like (such as Angular, React or Vue.js), and have an integrated deployment pipeline using GitHub.
To help you get started, I've created a workshop based around this repository. It will walk you through the basic features.
Scenario
We want to display a list of dog names on a page. We will start by running everything in the client and deploy our page to Azure. We'll then add server-side code through Azure functions and test it locally. We'll close by deploying our changes to Azure. All of this will be completed with just a few tools installed locally, GitHub, and of course Azure.
Tooling
- Node.js to run Azure Functions Core Tools
- Azure Function Core Tools
-
Visual Studio Code
- Azure Functions for Visual Studio Code to add Azure Functions
- Live Server to quickly host your application
- Bootstrap 4, Font awesome 4, Font Awesome 5 Free & Pro snippets to quickly bootstrap our application
-
Azure account
- If you're a student, you can enroll for Azure for Students for $100 in free credit and other bonuses
- Git
- GitHub account
NOTE: While Visual Studio Code isn't required to use Azure Static Web Apps, we are going to use the tool during our workshop.
Core steps
- Start with an HTML project
- Push your code to GitHub
- Create a Static Web App on Azure and deploy our code
- Add Azure Functions for server functionality
- Deploy updates to Azure