Guides
Everyday tasks with PouryaKit, each one step by step, with the Proving Sample's real code.
Each guide is one task, in the order you do it. The code in them is the Proving Sample's, or the Kit's own tests'.
The guides assume a solution generated from a template: see Get started. For the idea behind a step, follow the link to its concept; for every rule and option, to its Capability's page under Capabilities.
Features
Create a command
A command, its validator and its handler.
Answer a paged query
One Page of a sorted, filtered list.
Validate a command or query
Check input before the handler runs.
Add an endpoint
Serve a Feature over HTTP.
Make a command idempotent
Replay a client's repeated request instead of running it twice.
Between Modules and over time
Publish and subscribe to an Integration Event
Tell other Modules what happened.
Schedule a delayed or recurring command
Run a command later, or on a cadence.
Who may do what
Secure an Operation
Require a permission for a command or query.
Make a Module tenant-scoped
Hold every Operation and aggregate to its tenant.