Strawhats.Framework.Templates
0.6.0
dotnet new install Strawhats.Framework.Templates@0.6.0
Strawhats.Framework.Templates
dotnet new templates for Strawhats.Framework.
Install
dotnet new install Strawhats.Framework.Templates
Templates
Backends
| Short name | Description |
|---|---|
strawhats-api |
A clean-architecture API with built-in authentication: register/login/refresh, self-issued JWTs, EF Core identity persistence, and protected endpoints. |
strawhats-microservice |
A clean-architecture service: CQRS, EF Core, a transactional outbox, JWT bearer auth, and service-to-service client-credentials. |
strawhats-authserver |
An OAuth2/OIDC authorization server: discovery, JWKS, token, introspection, revocation, an HTML login, and EF Core stores. |
UIs — choose Blazor or Angular
The UI templates come in matching Blazor and Angular flavors; pick the one your team prefers. They
are standalone clients with no Strawhats.Framework package dependency.
| Talks to… | Blazor (.NET) | Angular (TypeScript) | How it authenticates |
|---|---|---|---|
| a Strawhats API | strawhats-blazor |
strawhats-angular |
Owns the login form; HTTP + JWT bearer. |
| an auth server | strawhats-blazor-oidc |
strawhats-angular-oidc |
Delegates login to the auth server over OpenID Connect. |
(strawhats-blazor-oidc is a server-side BFF holding tokens server-side; strawhats-angular-oidc is a
browser SPA using authorization_code + PKCE with a public client.)
Usage
# Backends
dotnet new strawhats-api -n Acme.Accounts
dotnet new strawhats-microservice -n Acme.Orders
dotnet new strawhats-authserver -n Acme.Identity
# UI for an API (choose one). Defaults match the strawhats-api port.
dotnet new strawhats-blazor -n Acme.Portal --api-url http://localhost:5080 # +--wasm for WebAssembly
dotnet new strawhats-angular -n acme-portal --api-url http://localhost:5080
# UI that logs in via the auth server (choose one). Defaults match the authserver's seeded clients.
dotnet new strawhats-blazor-oidc -n Acme.Portal --authority https://localhost:5001
dotnet new strawhats-angular-oidc -n acme-portal --authority https://localhost:5001
Angular templates produce an npm project — use a lowercase/kebab
-nname and runnpm install.
The backends generate a solution layered per the framework's architecture that builds and tests out of the
box and pins the matching Strawhats.Framework.* packages.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.