Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

337
Visualizações
I have created an ASP.NET Core Web API with Visual Studio but the front-end is in Angular. How can I configure it?

The problem is how I can configure the Angular application while my backend work which is an ASP.NET Core Web API, created in Visual Studio and the frontend is Angular created in Visual Studio Code and just want to run the application but don't know how.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

'dotnet run' should work. This launches the ASP.NET Core app and it ng serve's Angular. It runs on port 5000 as default (Kestrel). Or use IIS/IIS Express when using VS as an IDE instead.

Also, you may run into a timeoutException. This is a known bug when using Angular with ASP.NET Core. There is a workaround

Edit: You need to use SpaServices for this. There are templates for this when creating a new project.

over 4 years ago · Santiago Trujillo Relatório

0

You need to link both front end and back end using HttpClient module in angular.

import { HttpClient } from '@angular/common/http';

and in service file you need to specify the path for respective http requests which will call the backend code in Web API.

over 4 years ago · Santiago Trujillo Relatório

0

Okay at last what i did is inside angular.json file and under production configuration added "outputPath": "dist/wwwroot" and guess what ? It did my work

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda