Mission: SERVERLESS 101
Task: Invoke the API Service using generated client SDK
Hi where about’s does the line:
Backendless.initApp( “https://your-subdomain-name.backendless.app” );
need to be added into?
Thanks
Mission: SERVERLESS 101
Task: Invoke the API Service using generated client SDK
Hi where about’s does the line:
Backendless.initApp( “https://your-subdomain-name.backendless.app” );
need to be added into?
Thanks
It should go into your app’s initialization logic.
Regards,
Mark
In the mission im on within the CodelessShoppingCartService.js it appears to have a function already for that so I’m not sure if I should be modifying that function or is it to go elsewhere?
You could add a <script>
block in the .html file so that the initialization code runs before anything else.
This was the first thing I tried actually but it didn’t work, so wasn’t sure if I was missing something obvious. I will retry a bit later.
Have you changed sub domain to yours?
Here
Backendless.initApp( “https://your-subdomain-name.backendless.app” );
Regards