Makeover Your Website

with Azure Static Web Apps

Linda Nichols

@lynnaloo

Because "modernization" is just another way to say "makeover"

And everyone loves a makeover!

So, how about your janky old websites?

Make them sparkle with Azure Static Web Apps

  • Free!*

  • Easy setup

  • Local/Staging environment

  • Everything JavaScript (or TypeScript)

  • Serverless APIs

  • Authentication Integrations

  • CI/CD with Github Actions

But first, what is a static web app and why do we care?

 

  • Plain ol' HTML, JavaScript, CSS

  • Decoupled architecture

  • Cheaper

  • Faster

  • High availability

  • Easier deployments

  • JAMStack is cool

What is Microsoft Azure?

https://azure.microsoft.com/en-us/free/open-source/

What are Azure Functions?

  • Serverless (fully-managed/event-driven)

  • Highly scalable 

  • Supports many languages (limited in SWA)

  • Bindings to databases, messaging, and external services

Example Serverless Web App

Super-complicated Static Web Apps Diagram Ahead

WARNING:

Example Time

Janky Web App

www.github.com/lynnaloo/mullet

  • Outdated version of React

  • Old version of Webpack

  • Soon to be deprecated Hapi.js

Janky Web App

www.github.com/lynnaloo/mullet-with-jam

"Modernize"

  • Define your build artifact folder

  • Update your package.json (and Node version)

  • Update your build script*

  • Add "serverless" APIs with Azure Functions

* https://docs.microsoft.com/en-us/azure/static-web-apps/front-end-frameworks

Create App

Create App

A new Github Action has been magically committed to your repository to deploy your application.  

And once it's done building...

Demo Time

Linda's 80s Site

www.github.com/lynnaloo/lindas80ssite

  • circa 1996

  • http://lindas80ssite.freeservers.com

  • static before it was cool

  • only parts of the site could be recovered

Resources

Questions?

@lynnaloo

Azure Static Web Apps - Makeover Your Website

By Linda Nichols

Azure Static Web Apps - Makeover Your Website

Modernization is just another work for "makeover." Let's dust off some older applications and give them an Azure makeover. Together we'll explore the new Azure Static Web Apps service and then I'll show how, with a little refactoring, you can deploy your static web assets, and create dynamic "serverless" API endpoints, and have a Github actions deployment pipeline. Soon, your previously forgotten web sites will be shiny and new again and you'll have a new toolkit to deploy your new applications easily (and inexpensively) to Azure.

  • 703