[Out of date]
Thank you for using Platz.
Installation process.
-
Install PlatzServerSide nuget package to your Blazor Server App project
Important: You should see folders [Platz.Example.Link] and [Platz.Config.Link] in your project with code samples, configs and scripts
-
Modify your project startup.cs file add [using Pc.Platform;] and add code to ConfigureServices method:
services.AddServerSidePlatz();
services.AddPlatzApplicationParts("Pc."); // if you want to use examples from Platz.Example.Link without changing namespace
services.AddPlatzApplicationParts("BlazorApp1"); // put root namespace of your project instead of BlazorApp1
Important: Change "BlazorApp1" to your root namespace (project name). Also don't forget to add [using Pc.Platform;]
-
Modify _Imports.razor and add references:
@using MatBlazor
@using Pc.Platz.Rendering.Components
-
Modify _Host.cshtml and add to tag before your css link
-
For SqlExpress Local DB Run:
5.1 Copy configuration sections from [Platz.Config.Link\appsettings.localdb.json] to your project appsettings.json
5.2 Run Windows Command Prompt and execute commands from [Platz.Config.Link\localdb.cmd] to create required sql objects
-
File [Platz.Example.Link\SampleFlow1.cs] contains a sample flow with model, form and rule
-
Modify [Pages\Counter.razor] file adding razor tag:
Run your project
More configuration options:
- For Microsoft SqlServer Run:
*. - ignore step 5.
8.1 Copy configuration sections from [Platz.Config.Link\appsettings.mssql.json] to your project appsettings.json, modify connection strings pointing it
to your sql database
8.2 Run sql script [Platz.Config.Link\SqlServerScripts.sql] in your sql database to create required sql objects