Fiaz Ahmed Ranjha
Fiaz Ahmed Ranjha

Reputation: 253

react + asp.net core separate projects hosting (deploy)suggestion

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: client

server (webapi) structure is here: server webapi here

Upvotes: 5

Views: 2196

Answers (1)

samwu
samwu

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

Related Questions