Skip to content

Instantly share code, notes, and snippets.

@IEvangelist
Last active October 12, 2021 01:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IEvangelist/d43abafb64d207bff25e60769e986bbd to your computer and use it in GitHub Desktop.
Save IEvangelist/d43abafb64d207bff25e60769e986bbd to your computer and use it in GitHub Desktop.

Steve Sanderson agreed to write the foreword!

Look into WASM pre-rendered Securing sensative config values Static web app

Top-navigation -- [Theme Toggle] [Notifications] [Voice Options] [Langauge] [Log in]

  • Six panel layout -- each panel is a Component (draggable)

    1. Twitter -- configure hash tags and handles
    2. Jokes -- auto-refresh, but allow manual after a while
    3. Weather -- editable
    4. Have I Been Pwned -- email and password checker, on-demand (alerts?)
    5. Chat / Video Chat
    6. [ + ]
  • Use Have I Been Pwned (HIBP) service ~

  • Use localization / globalization, and resource translation ✔

    • JS interop, speak anything on the page -- in any language
    • Translation services
  • Use repository-pattern .NET SDK (Cosmos DB) ✔

    • Background / Worker service - for API caching
    • Azure Functions -- stateless
  • Use some sort of jokes API ✔

    • Aggregate chuck norris (cnidb, nerdy), programming jokes, and dad jokes
  • Show xUnit the Blazor complementary bUnit ✔

    • Consider "Scenario testing"
  • Loading page

Consider bulma for the CSS framework, as it doesn't require JavaScript:

See this for unit testing: https://github.com/egil/blazor-workshop And AutoData from AutoFixture

Project structure

https://gist.github.com/davidfowl/ed7564297c61fe9ab814

GitHub Actions

CI/CD and so much more! ✔

Modular components to highlight component aspect.

Architecture

Blazor Wasm - client

  • HTTP calls
  • Microservices
  • SignalR
  • Azure static web app

Server - bits

  • ASP.NET Core Web API
  • Azure Functions
  • Cosmos DB
    • Repository-pattern
@IEvangelist
Copy link
Author

File new > Blazor WebAssembly App

dotnet new blazorwasm --auth IndiviaulB2C

image

@IEvangelist
Copy link
Author

@IEvangelist
Copy link
Author

IEvangelist commented Jul 8, 2021

People interested in reviewing the Blazor book:

Beta tester

  • Tyler Whitney: *****

Technical reviewer

  • Carol Tumey: *****
  • Erik Hopf: *****
  • Chad Olson: *****
  • Bruno Barrette: *****
  • John Kennedy: *****

@IEvangelist
Copy link
Author

In the beginning, no... once upon a time, nope -- it all started with an idea, much to my surprise a small idea.

@IEvangelist
Copy link
Author

Use <element translate="no" /> where applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment