How to create a new web app from ArcGIS API for JavaScript Sandbox?

3121
2
03-09-2016 01:20 PM
SeanDolan1
Occasional Contributor II

I am new to ArcGIS API for JavaScript.  I have customized my html code in Sandbox and want to now create/generate a new web app.  Where do I go from here?  What is my next step?  Thank you.

0 Kudos
2 Replies
AravindStoryMaps
Esri Regular Contributor

1. Enable IIS on the computer you are working on.

2. Copy the code in sandbox. Open Notepad. Paste it and then save the file as "<web-page-name>.html".

3. Copy this html file and paste it into C:\inetpub\wwwroot.

4. The URL of this will be at: http://localhost/<web-page-name>.html.

If you want to make this public facing and everyone to see it, you may want to consider purchasing a Fully Qualified Domain Name for your machine or purchase a web server and then buy a domain for the IP assoviated with that web server.

AravindStoryMaps
Esri Regular Contributor

In your case, Sean, we did the following:

1. Copy the code in sandbox. Open TextEdit. Paste it and then save the file as "<web-page-name>.html". (Steps to make TextEdit save the rtf format as html: https://www.askdavetaylor.com/how_do_i_save_html_files_from_textedit/

2. If you don't have a local web server or a public facing one, best bet to make sweet public maps is to follow the following steps using Google: Host web pages with Google Drive - Drive Help


Step 2 is only if this is a tutorial or a training class. If you have secure/sensitive data, avoid trying to use Google Drive as a web server by itself.

Thanks,

Aravind

0 Kudos