javascript - Authenticating documentDB REST API calls -


in sample application, name of host , key added config.json file. when application run in browser, configuration downloaded user's computer? can me understand js file being downloaded users computer, , js file runs on server?

the short answer no, config.js lives on server. sample app mentioned written using node.js (which server-side javascript run-time) using express framework.

by default, should assume every file lives on server (unless explicitly exposed).

for sample app, in /public/ directory (which contains simple .css stylesheet) exposed client. exposed app.js on line 29: app.use(express.static(path.join(__dirname, 'public')));

you can find full code sample tutorial mentioned on github: https://github.com/azure/azure-documentdb-node/tree/master/tutorial/todo


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -