9health / 10-blazor-tutorial

Doing Blazar tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

01-blazor-tutorial

Doing Blazar tutorial

References

[microsoft.com] Blazor Tutorial - Build your first Blazor app

Preparations

How to view the website

  • Launch web server
cd BlazorApp
dotnet watch
  • Go to website address at http://localhost:80

Expected output

Terminal

dotnet watch πŸ”₯ Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.
  πŸ’‘ Press "Ctrl + R" to restart.
dotnet watch πŸ”§ Building...
  Determining projects to restore...
  All projects are up-to-date for restore.
  BlazorApp -> C:\Users\ninehealth\work\9Health\dotnet\10-blazor-tutorial\BlazorApp\bin\Debug\net6.0\BlazorApp.dll
dotnet watch πŸš€ Started
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://[::]:80
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\Users\ninehealth\work\9Health\dotnet\10-blazor-tutorial\BlazorApp\

Screenshots

On PC

Blazor App Home page

Blazor App Counter page

On mobile

Mobile view of Home page

Mobile view of Counter page

Other Notes

Somethings to try

  • Try to change the IncrementAmount at Home page from 10 to 20
  • Look at the dotnet watch window to see Hot reload magic feature
  • Try to change listening port to a different port

About

Doing Blazar tutorial

License:Apache License 2.0


Languages

Language:HTML 51.5%Language:CSS 34.1%Language:C# 14.4%