iolevel / wpdotnet-sdk

WordPress compiled to .NET Standard. SDK for ASP.NET Core.
http://www.wpdotnet.com
Other
414 stars 69 forks source link

Headless CMS with Blazor, using Tye #107

Open marinasundstrom opened 3 years ago

marinasundstrom commented 3 years ago

Someone asked about how to use Blazor with Wordpress.

It never really occurred to me to use Wordpress just to manage content. I did not even know about the term "Headless CMS", but after hearing about it, I created my own sample using server-side Blazor as a frontend.

The point is that the content is authored in Wordpress, and displayed on the custom site.

The code is available here: https://github.com/robertsundstrom/headless-wordpress-blazor (Screenshots too)

It uses a custom build of WordpressPCL as a client, when invoking the Wordpress REST API. It is included as a binary. Hopefully, it will be merged into the code base soon.

I have added Tye, which orchestrates the projects and MySQL Docker image. It can be used for any WP.NET project.