https://github.com/blazingapple/blog
A Blazor WASM Wordpress Razor Side Library that simplifies access to WordPress's JSON APIs
https://github.com/blazingapple/blog
blazor blog webassembly wordpress wordpress-api wordpress-client
Last synced: about 1 year ago
JSON representation
A Blazor WASM Wordpress Razor Side Library that simplifies access to WordPress's JSON APIs
- Host: GitHub
- URL: https://github.com/blazingapple/blog
- Owner: BlazingApple
- License: mit
- Created: 2020-12-27T16:31:29.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T15:44:54.000Z (about 3 years ago)
- Last Synced: 2025-01-11T10:49:43.598Z (about 1 year ago)
- Topics: blazor, blog, webassembly, wordpress, wordpress-api, wordpress-client
- Language: HTML
- Homepage:
- Size: 14.7 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlazingApple.Blog :apple:
:fire: A totally copacetic, easy-to-use front-end Blazor WordPress Rendering Blog package.
This front-end Razor Class Library is intended to be used by Blazor WASM projects, and targets .NET 5. It easily allows you to render your WordPress Blogs.
## About BlazingApples
BlazingApples is an open-source set of packages that aims to speed application development for Blazor WebAssembly organizations.
:zap: Check out the [demo site here](https://blazorsimplesurvey.azurewebsites.net/displaysurvey), [or this blog post on how the components work](https://blazorhelpwebsite.com/ViewBlogPost/44)!
:clap: Special thanks to [wp-Net](https://github.com/wp-net) for creating the [WordPressPCL](https://github.com/wp-net/WordPressPCL) API service on which this library primarily consumes.
# Demo :video_camera:

# Installation :wrench:
## 1. Get the required dependencies.
1. On Client Project, right click and get to the NuGet Package Manager ("Manage NuGetPackages").
2. Install `WordPressPCL`. This provides the client service to request data from your site.
3. Add the following to `Program.cs's Main`:
```
builder.Services.AddScoped(pcl => new WordPressClient("https://old.taylorchasewhite.com/wp-json/"));
```
4. Install `BlazingApple.Blog`. This provides the client components to render the requested data.

Now you should be all set to use the components!
# Usage :muscle:
Once the setup is complete, using the components is straightforward:
1. In a component, inject the WordPressPCL client, `@inject WordPressPCL.WordPressClient client`.
2. Add the `` component to render all the posts in your blog.
## Credits :white_flower:
- Build with love :blue_heart:, using [WordPressPCL](https://github.com/wp-net/WordPressPCL).
## Authors :pencil:
1. [Taylor White](https://twitter.com/taychasewhite)
## License :scroll:

- **[GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)**
## Blog Home :camera:

## Categories (Pages Looks Similar) :camera:

## Posts For a Category :camera:
