Download .NET and install the appropriate .NET version.
Setup the project
dotnet restore
Run the front-end client in a terminal window of its own (2 options):
dotnet watch run --project src/Client
cd src/Client
dotnet watch run
Run the back-end server, if you need it, in a terminal window of its own (2 options):
dotnet watch run --project src/Server
cd src/Server
dotnet watch run
TODO: Description
- Razor Pages [
.razor
]- Superset of HTML
- Supports inline code directives and HTML generation
- Supports component-based front-end patterns
- Can include all the C# or CSS code for a page as well
- Code-Behind fIles [
.razor.cs
] (Optional)- A page in Blazor is represented by one class in the end compilation, so a Code-Behind file can contain a partial class for the Razor page, containing the code that would have been present in a
@code
block - Allows definition/redefinition of page lifecycle hooks such as
OnInitialized
,OnAfterRender
, etc.
- A page in Blazor is represented by one class in the end compilation, so a Code-Behind file can contain a partial class for the Razor page, containing the code that would have been present in a
- Scoped CSS file [
.razor.css
] (Optional)- Contains CSS that is scoped to the page/component that it represents
- Isolates the CSS definitions for a page/component to the associated page/component
- Should be preferred over using
.css
files whenever possible, importing.css
files that are needed