elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.09k stars 1.11k forks source link

.NET Project Templates #1312

Open sfmskywalker opened 2 years ago

sfmskywalker commented 2 years ago

We should have the following.NET project templates for getting started quickly:

The latter one will create a new project setting up Elsa as both server and dashboard (monolith).

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

DanielMPries commented 2 years ago

To capture some thoughts on this, for the elsa-server template, did we want to setup a template with the heartbeat implementation as defined in the docs? Heartbeats are in general a good practice to bake in, unless we see that being too strong of an opinion.

sfmskywalker commented 2 years ago

Good question. Personally I would prefer having the option of a minimal template, but for newcomers, having something functioning might be helpful.

Perhaps we include the heartbeat by default (easy to delete) and if it becomes a nuisance, we introduce a new, more "empty" template or add a template parameter (if that exists) to opt-out of this workflow.

dalefrancis88 commented 5 months ago

I'll create this is a repo called else-templates. Initially i'll do it just for 3.0 and if it works someone can copy for 2.0 I'll build the template based on the default projects outlined in the docs for studio and api. They'll be built such that you can 'dotnet new' an api project and a studio project and have them work

Anything missing @sfmskywalker?

LinQiaoPorco commented 1 month ago

Hi, any progress on the templates? I am trying to use the Elsa 3.0, but it seems no templates are available.

When run dotnet new blazorwasm-empty -n "ElsaStudio" -f net7.0, error goes like:

No templates or subcommands found matching: 'blazorwasm-empty'.

To list installed templates similar to 'blazorwasm-empty', run:
   dotnet new list blazorwasm-empty
   dotnet new search blazorwasm-empty

For details on the exit code, refer to https://aka.ms/templating-exit-codes#103