I'll appreciate some assistance debugging my code to know what I am missing or doing wrong.
Please feel free to review related code at my git repository at this link https://github.com/slim1477/slim-financial. The backend application in the repo uses .NET 8, I just updated my local version to .NET 9 and Angular version is 19. I have started the consolidation process, so might find a copy of the Angular project in the API project.
Overview
I have initially created an Angular frontend app and a backend API, both applications work as expected when you spin them up independently.
Task
Merge both projects into one, such that when I invoke the dotnet run command, both applications are started on the same port and at the same time.
Current State
To achieve the task above I am using the SpaApplicationBuilderExtension and calling the UseSpa method to invoke the npm start command in the package.json file in my UI application (image below).
Issues
- I run into https validation issue since Angular runs on http in development
- I get the error message in the image below when I attempt to navigate to the UI.
Workarounds
To navigate the http issue, I have commented out the UseHttpsRedirection middleware, which seem to work. Also I have reviewed and attempted solutions that I could lay my hands on, but non seem to work to fix either of the issues.
Questions
- How do I configure my application to run without commenting out the
UseHttpsRedirectmiddleware? - How do I fix the issue #2 mentioned above
- I am opened to feedback and would appreciate comments and opinions from experienced folks out there regarding my coding pattern and anything you think would be beneficial at making me a better .NET developer.
Thank you in advance.


npm startthat effectively callsng servewhich effectively starts a webpack dev server.