Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
dotnet new templates for EventFlow #806
Conversation
|
It seems the AppVeyor build is failing due to missing license headers on the file. Before I spend the time adding these headers, is there any interest in this PR? |
dotnet new templates for EventFlow
I thought some dotnet new templates for EventFlow would be more beneficial than additional examples as it'll significantly lower the barrier to entry for getting started with this fantastic project.
This PR contains a new top level project
EventFlow.TemplatePackwhich, when packed, published and installed using "dotnet new --install EventFlow.Templates", presents the following new project templates:Each template takes an
--entityparameter meant to represent the entity being modelled.EventFlow Library Template
Creates a new netstandard 2.0
Orderingproject containing anOrderaggregate root,OrderIdidentity andOrderStateaggregate state, fully wired with sampleIncrementandDecrementcommands/handlers/events.EventFlow Console Application Template
Creates a new
Orderingsolution containing two projects; "Ordering" and "Ordering.Domain". "Ordering.Domain" is a netstandard2.0 library with the same content as theEventFlow Library Template. "Ordering" is a netcoreapp 3.1 console application which receives key presses from the console and emits commands to / performs queries on, the Ordering.Domain.EventFlow WebApp Application Template
Creates a new
Orderingsolution containing two projects; "Ordering" and "Ordering.Domain". "Ordering.Domain" is a netstandard2.0 library with the same content as theEventFlow Library Template. "Ordering" is a netcoreapp 3.1 web application containing an 'Order' controller which provides POST/GET endpoints to emit commands to / performs queries on, the Ordering.Domain.TODO
I wasn't able to run the automated build. I believe the EventFlow.TemplatePack project should be built and packed correctly but this needs to be confirmed
Comments
If you feel this PR is missing anything or would like additional templates just let me know.
Cheers,
Ian