Appendix A. Setting up your environment
You have a few software options when developing web applications. Whether you prefer a visual environment or the command line, the ArcGIS API for JavaScript requires a local server. My three recommendations are outlined in this appendix.
Web development is easiest with Microsoft Visual Studio Express for Web (www.microsoft.com/visualstudio/eng/downloads#d-express-web). This software comes with a local web server to build your applications. Visual Studio Express is probably the easiest way to get started, as it is both an editing environment and local server in one.
If you prefer to work in a text editor, one of my favorite lightweight local servers is Apache, which can be installed with XAMPP, which stands for Cross-platform Apache, MySQL, PHP, and Perl (www.apachefriends.org/en/xampp.html). It runs a local instance of Apache HTTP web server on your machine and is easy to work with.
Tip
Copy your files to the xampp\htdocs folder to view them in the browser. XAMPP will serve all files from this folder.
Another option for running a local web server is to use Python (www.python.org). I recommend downloading Python v2.7.
In your favorite command-line tool, navigate to the folder containing your web files and run this command: