{"repo":"damienbod/bff-aspnetcore-angular","free":true,"listed":false,"github":"https://github.com/damienbod/bff-aspnetcore-angular","clone":"git clone https://github.com/damienbod/bff-aspnetcore-angular.git","description":"Backend for frontend security using Angular CLI and ASP.NET Core backend","language":"C#","stars":149,"topics":["angular","aspnetcore","bff","cookie","csp","csrf","yarp","azuread","entra","microsoftidentity"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"BFF security architecture using ASP.NET Core and Angular CLI Setup Server The ASP.NET Core project is setup to run in development and production. In production, it uses the Angular production build deployed to the wwwroot. In development, it uses MS YARP reverse proxy to forward requests. [!IMPORTANT] In production, the Angular CLI project is built into the wwwroot of the .NET project. Configure the YARP reverse proxy to match the Angular CLI URL. This is only required in development. I always use HTTPS in development and the port needs to match the Angular CLI developement env. [!IMPORTANT] In a real Angular project, the additional dev routes need to be added so that the dev refresh works! Setup Angular CLI Add the certificates to the CLI project for example in the /certs folder. Update the Angular CLI angular.json file: [!NOTE] The default Angular setup uses port 4200, this needs to match the YARP reverse proxy settings for development. Update the outputPath for the (Angular CLI build) to deploy the production paths to the wwwroot of the .NET project [!NOTE] When creating a new Angular CLI project, it adds git files as well, delete these as this is not required. Prerequisites Node = v24.10.0 Setup development The development environment is setup to use the default tools for each of the tech stacks. Angular CLI is used like recommended. I use Visual Studio code. A YARP reverse proxy is used to integrate the Angular development into the backend application. [!NOTE] Always run","default_branch":null,"files":null,"tree":[],"storefront":"/r/damienbod","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/damienbod/bff-aspnetcore-angular/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}