EmbeddedBlazorContent - how to include static content from blazor libraries

If you want to include some static resources from the Blazor component library use “EmbeddedBlazorContent” tool. Source: https://github.com/SamProf/EmbeddedBlazorContent Create static content in Blazor component library Create “content” folder in the root of the library project and add CSS and JS files in. Add embeded resource build action on all the files Open properties on each resource file and select “Embedded resource” build action on it. Additional attributes for embedded resource in the project file Open .

MatBlazor components installation

AspNet Core - Server side Blazor framework Source: https://www.matblazor.com/ If you need open source components for Blazor you definitively need to look at MatBlazor component library. Installation MatBlazor nuget library EmbeddedBlazorContent nuget library (for server side blazor projects) Startup.cs Configure method // Embedded blazor content get static content from depended DLLs app.UseEmbeddedBlazorContent(typeof(MatBlazor.BaseMatComponent).Assembly); _Imports.razor Add additional “using” statement for MatBlazor @using MatBlazor _Host.cshtml @addTagHelper *, MatBlazor @using EmbeddedBlazorContent Application bar sample In the NavMenu.

Syncfusion EJ2 AspNet Core Blazor components installation

If you need professional and supported set of components for server side / client side Blazor web applications use Syncfusion components. More info: https://ej2.syncfusion.com/aspnet-core-blazor/documentation/getting-started/dotnet-cli-blazor-server/ https://ej2.syncfusion.com/aspnet-core-blazor/Grid/DefaultFunctionalities?theme=material Installation - NuGet packages : Syncfusion.EJ2.Blazor Startup.cs Configure method Licensing is not needed in case of preview version and library don’t even contain “Licensing” namespace. // Register Syncfusion license Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("…licence string…"); _Host.cshtml @addTagHelper *, Syncfusion.EJ2.Blazor _Imports.razor @using Syncfusion.EJ2.Blazor@using Syncfusion.EJ2.Blazor.Calendars Components usage in razor files @page “/”

Database migrations with FluentMigrator

How to setup database migrations in AspNet Core 3 project and SQLite database Add NuGet packages to projects with migration classes (data layer library): - FluentMigrator - Microsoft.Data.Sqlite Add two additional NuGet packages to AspNet Core web project : - FluentMigrator.Runner - FluentMigrator.Runner.SQLite Configure Startup.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using FluentMigrator.Runner; using FluentMigrator.Runner.Initialization; using Bisaga.

Sakila- Dagger 2 Dependency Injection

REST web server and dependency injection The code from this article is available here. I described basic usage of Dagger 2 already in this article, now we need to implement dependency injection mechanism in the web application. Typical web application would have at least two layers, one for the web server itself and another for client request processing. Spark Java web server internally use embedded Jetty web server. To setup and start the server we provide some central services like configurations, authentication, statistics etc.

Sakila: Sample app project setup

This sample application will integrate quite a few very nice open source tools available to every developer: Postgresql - database Flyway - database migration tool Jooq - Java object oriented querying + HikariCP connection pool Dagger 2 - dependency injection SparkJava - fast and simple web server + GSON Json serializer JavaScript Polymer SPA application framework Vaadin Elements components The application will consist of many modules :