muskagap
✅ Deploying Node app along with .Net Core on IIS
1. Ok, question: isn't it a good approach to host both apps on the same IIS server but under 2 seperate urls? Then ui doesn't share resources with my api which will be more compute resource intensive.
3. But I have to move the files if , for example, I make some changes to Vue.app. Then after each change in UI I would have to bulid Vue again and move files to wwwroot.
38 replies
✅ Deploying Node app along with .Net Core on IIS
Thanks for replies.
AD.2. I understand that I could make some task to do it but my question was: is moving Vue files to wwwroot the only one solution for make both (Vue, API) work together? Can't I store Vue files somewhere else on server and communicate both via http?
AD.3 Could you explain why? If I won't point the API endpoint location using axios then how they can communicate?
38 replies
❔ How should I correctly interact .NET Core App with client-side app?
Ok, and this is what I was curious about too. Does NSwag uses axios internally or something else? Thanks for clarification, now I know it uses fetch. SO it means that if I wanted to make any changes/add extra code then only
fetch()
library is acceptable51 replies
❔ How should I correctly interact .NET Core App with client-side app?
Yes, but NSwag generates the clientside code to connect to api, I can do the same with axios (or fetch). If I can do the same with both approaches then NSwag is better because it makes all the job for me
51 replies