Skip to content

Create .NET (C#) Web API Backstage Template #56

@NgocAnhDo26

Description

@NgocAnhDo26

Background

We need a template for C# developers to quickly scaffold a .NET Web API that is ready to be deployed to our Kubernetes cluster via Tekton and ArgoCD.

Specific Steps

  • Create a basic ASP.NET Core Web API project in apps/portal/examples/dotnet-template/content/source.
  • Add a Dockerfile customized for .NET (multi-stage build).
  • Add a docker-compose file so dev can start local environment easily for development.
  • Configure appsettings.json to read Database connection variables dynamically from environment variables (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME).
  • Create template.yaml (copying the structure from existing Node.js templates) and register it in app-config.yaml.

Expected Output

A working Backstage software template where a user can input a name and get a Git repo with a compiled .NET API that automatically parses injected Database credentials.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions