Base solution for your next web application
Open Closed

Run Angular Project #4207


User avatar
0
verrrrrrrrrrrrrdi created

Hi,

I run angular via ng serve but it show err msg "Internal Server Error", i think it's because nswag keep request services proxies. I don't run web.host project in asp.net core solution. I have separated team focus on Front End using angular and Back End using asp.net Core. how can i run angular decoupled with asp.net core project in development time ?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Verrrrrrrrrrrrrdi,

    Angular application uses Host project as an API provider, so it makes requests to Host project to get necessary data. If you don't want to use Host project in development, you need to replace services proxies file with the one which returns test datas without connecting the server.

    Or you can publish your Host application to a local IIS and use it for development. In that way, you will not have to run Host project but you will need to update website on IIS when you need to.

    Anyway, AspNet Zero is not designed to work like that actuyally, so you can find implementation of my first suggestion on the web but we are not suggesting to work like that even in development time.

    Thanks.