Reputation: 253
i have two projects client for front-end and server for back-end.both working fine independantly and communication on local host. so react app with asp.netcore back-end.
client is built using vs code and i start by typing "npm start" on terminal. server is built using visual studio 2019 , it works as webapi and i start simply typing "dotnet run" on cmd in server folder ,or from vs f5 command.
anyone suggest how to build or publish both and start them for production .any suggestion other than azure .
if i am wrong ,how to merge both and host on single server .
client folder structure is here:
server (webapi) structure is here:
Upvotes: 5
Views: 2196
Reputation: 5235
It looks like you posted two thumbnails by mistake, please post the origin srcreenshot picture.
Since your client for front-end and server for back-end can work independently, you can create two websites in iis and then publish your projects separately. About how to publish an ASP.NET Core app to IIS you can refer to this link:Publish an ASP.NET Core app to IIS
Upvotes: 1