Creating An ArcGIS Token with Node
Creating An ArcGIS Token with Node
DISCLAIMER: I am not a security expert, and this is not secure. This sample is meant as a starting place for your application. Use as is at your own risk.
Change the username/password in the server.js file. Change the secured service url in the map.html file too.
To run the web app you must have Node installed. With Node installed, navigate to the root folder of the app and type:
npm install
node server.js
Open a modern browser and go to http://localhost:8001/