8000 GitHub - petervyvey/Sandbox
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

petervyvey/Sandbox

 
 

Repository files navigation

.NET and Angular Sandbox

Some buzzwords that are used:

  • Aspire
  • .NET (Minimal) API
    • EF Core Migrations
  • Angular
  • OpenTelemetry
  • YARP
  • Containers
  • Azure Developer CLI (azd)
  • Authentication (TODO)

Prerequisites

  • .NET 9
  • pnpm - npnm is also fine but you need to install the dependencies manually (go to the Sandbox.AngularApp folder and run npm install)
  • Containerization tool (podman, docker, etc)

Run the project locally

Clone the project and run the dotnet run command in the root folder to start the project.

dotnet run --project .\Sandbox.AppHost

Result

While the project runs you should see the Aspire dashboard. The first time this can take a while to spin up the containers and download the images.

Aspire dashboard

Navigating to the gateway opens the Angular app, which invokes the .NET API. Interacting with the application will generate traces that are sent to the Aspire dashboard, which can be looked at in real-time through the "Traces" tab in the dashboard.

Trace

With the corresponding logs for the traces.

Logs

Deploy to Azure

To deploy the project, make sure you have an Azure subscription and azd installed.

Then, run the following commands to provision the resources and deploy the project:

azd init
azd up

Releases

No releases published

Packages

No packages published

Languages

  • C# 54.5%
  • HTML 15.8%
  • CSS 14.9%
  • TypeScript 11.8%
  • JavaScript 1.8%
  • Dockerfile 1.2%
0