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

Made with Slides.com