How to connect NEW Azure App Service to HTML5 / JS

I'm new to Azure and try to connect the existing application HTML5 / JS DevExtreme to set up a new Azure App Service. This did a great job with the "old" Azure Mobile Service, and I found a lot of samples for this. Azure doesn't even have a quick launch pattern.

I added the following lines of code to my application:

index.html

<script src="https://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.7.min.js"></script>

home.js:

var _client = new WindowsAzure.MobileServiceClient("https://myapp.azurewebsites.net/");

How can I do this using the new Azure App Service? I don't even get an error when using the above code, but the data inserts in my Azure SQL database table do not work.

Thanks for the help!

+4

Source: https://habr.com/ru/post/1625865/


All Articles