Deploy .NET 8 Blazor apps and serverless APIs with Azure Static Web Apps

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • With .NET 8, we can build Blazor WebAssembly applications, deploy them to Azure Static Web Apps, and complement them with serverless Functions APIs to build full-stack .NET 8, serverless applications.
    This video complements the source blog techcommunity..... Check out the blog to find helpful references, code snippets, and a template repository that lets you start with a fully pre-configured project.

КОМЕНТАРІ • 11

  • @markharby180
    @markharby180 8 місяців тому +3

    Good intro video, however, make sure you update your Azure Functions templates in VS to get .NET 8 options when adding your new API project..
    - Tools->Options->Projects and Solutions->Azure Functions->Check for Update. I was already running the latest and greatest VS 17.8.3 and only had .NET 7
    I've been kicking this around all day trying to create a CRUD API using EF Core and SQL Server.
    I have run into a number of really difficult concepts that are required to make this work with very little 'real' help around the usual sources of information. Notably :-
    - How to use Dependency Injection with EF Core in an Azure Function (there are many wrong answers available).
    - How to manage Connection Strings for local and deployed development (the Connection String section has now been removed from the Configuration page in the Azure portal BTW).
    - What is the best way to pass complex types (Model classes), should we serialize or pass raw, both seem to work ?
    This was a great article to peak the interest, a follow-up with real-world examples would be even better.

    • @thomasgauvin
      @thomasgauvin  8 місяців тому +1

      Thanks for the great writeup Mark. The fix for .NET 8 templates will hopefully no longer be needed soon, Functions team mentioned there's a rollout in place. Connection strings was moved in the portal from the Configuration tab to its own Environment variables to make it easier to access. Noting down the feedback for more real-world & complex examples!

    • @zoltan.halasz
      @zoltan.halasz 8 місяців тому

      Exactly, I was able to create only a function with .net 6 lts which was working locally with the client project but could not be deployed with github actions. So I will stick to the local example without deployment 😊

  • @lmanes
    @lmanes 6 місяців тому +1

    very good video. straight to the point. awesome.

  • @georgeboydratcliff1036
    @georgeboydratcliff1036 5 місяців тому

    Great video! Thank you! This is exactly the type of thing I’m trying to learn!

  • @campndad
    @campndad 7 місяців тому

    Great video without wasting a lot of time. I subscribed.

  • @asdasdaa7063
    @asdasdaa7063 7 місяців тому +1

    Would love to see a full project created, like one you did now but with real life examples. Like setting up user auth so on, just think of a real world example where you could create a full frontend/backend for blazor using the azure function's. Would really love to see that!

  • @user-id2wp4qu6y
    @user-id2wp4qu6y 5 днів тому

    Sir I have a question.
    I was deploying through github and when doing the "Deploy to Azure Static Web Apps" part of jobs in yml, I am keep having an error message like "Downloading and extracting 'dotnet' version '6.0.424' to '/opt/dotnet/6.0.424'..." even if I was using version 8.0.400. Do you know any reason? Thanks :)

  • @skerdi5822
    @skerdi5822 8 місяців тому

    Great Tutorial!
    But, how would you handle authentication using b2c for example?

  • @saroshwadia
    @saroshwadia 6 місяців тому

    Great video - Always wanted to try out Blazor and SWA. For the Shared project instead of .Net Standard 2.0 could we use a .Net 8 Class Library Project?

  • @Alchemist19
    @Alchemist19 5 місяців тому

    amazing, thank you, i got a question about Blazor server-side, is it possible to run it on Azure ? i got disappointed when i knew we can only deploy wasm