Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

332
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda