Base solution for your next web application

Activities of "JapNolt"

@ismcagdas,

Would you recommend modifying the existing ChatHub and SignalRChatCommunicator to achieve the Real-time communication between the Angular front end, the ASPCore backend, and a desktop client? Or should I instead create another Hub for this functionality?

Question

using angular and aspnet core template

Does anybody have any guidance or samples on keeping the data in an angular component live? In other words when a record gets created in a backend table, I want the service to notify the angular UI that it needs to update/refresh. I know that signalr is the tool to use but I'm looking for guidance on best code structure.

Is it possible to change the default host tenant name to something that's hard to discover, ie. thisismysuperhardtenantname.portal.mycoolwebsite.com. The host tenant name would be required. In other words, a user could NOT go to portal.mycoolwebsite.com to login to the default host tenant.

I'm using ASPNetCore and Angular project. My host appsettings.json:

"App": {
    "ServerRootAddress": "http://{TENANCY_NAME}.api.mycoolwebsite.com",
    "ClientRootAddress": "http://{TENANCY_NAME}.portal.mycoolwebsite.com",
    "CorsOrigins": "http://portal.mycoolwebsite.com"
  }

My Angular appconfig.json

"remoteServiceBaseUrl": "http://{TENANCY_NAME}.api.mycoolwebsite.com",
  "appBaseUrl": "http://{TENANCY_NAME}.portal.mycoolwebsite.com",

@godrunner +1 Thanks.

Thanks for the detailed reply.

If I do deploy to separate Azure App Services, I'm assuming I would need to have a different hostname for the front end (<a class="postlink" href="http://myservice.com">http://myservice.com</a>) and the api (<a class="postlink" href="http://myserviceapi.com">http://myserviceapi.com</a>) or is that not the case?

If doing subdomain per tenancy regardless of what deployment model is used (merged or separate), is it necessary to set the CorsOrigin for each subdomain or is it possible to set a catchall? It seems like a lot of extra work to tweak the CorsOrigin every time that a new tenant is added, especially if we have automatic tenant signup enabled.

BTW, what is your recommendation, to run merged or in separate app services?

So if I have both the Angular app and the backend api in the same Azure App Service, it doesn't seem to work. I'm assuming that the web.config isn't correct or something with the routes isn't right. I'm assuming I should be doing something contained here but not sure how to do it in Azure App Service. <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Angular#iis-deploy">https://aspnetzero.com/Documents/Develo ... iis-deploy</a>

I have downloaded the Angular/aspnetcore template (not merged) and I would like to deploy both to the same Azure App Service. How can I make that work? I'm assuming there are things I need to configure in the web.config and also maybe in the Azure App Service to make it work??

Showing 51 to 57 of 57 entries