-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need a web server tutorial #34
Comments
a) on the machine running the web server, open a browser and type in http://localhost/ ---- blank page = no functioning web server Thanks for posting this question! |
@LDittmann thanks for chiming in. i'd definitely agree that a web server that is only available internally is sufficient. i plan on writing up instructions for both Python's SimpleHTTPServer (because Python is included on macs by default and laid down automatically with ArcGIS tools on Windows), and Node's http-server, because they are simple, lightweight, and don't require extensive configuration or admin priviledges on the machine. |
WAB doesn't need it, no, but doing stuff with the jsapi or leaflet im assuming does. |
No, if you check out the API exercises in "Develop", they all use jsBin.com. I made sure of it so we wouldn't have this requirement. e.g https://github.com/Esri/geodev-hackerlabs/blob/gh-pages/develop/add_feature_layers_jsapi.md Closing. |
i know jsbin is convenient, but its garbage for debugging and i think its a poor decision to rely on it in geodev exercises, (particularly since we're using gh-pages to share our own examples). |
@jgravois debugging jsbin is easy. Just select the arrow beside Output and load the page into a stand-alone window, View Source, Click the HTML and boom, it's just like normal debugging in Chrome. Couldn't be easier. |
Yup. However, to Jim's point it would be easy to list a couple helper links to folks who want to set up IIS on Windows or Apache on Mac. Eventually these folks will have to configure their machine with a local web server. |
thats cool, but i didn't know it existed, so i can guarantee that no one getting their feet wet in web development for the first time will either. what happens when you change a line of code? close the new window and repeat the process? if so, thats going to get old after about 3 minutes. edit: i understand that it can be tedious to spend time in hackerlabs helping people set up their own environment, but supplying them with documentation in the meetup announcement that mentions both IIS/Apache and lighterweight options like SimpleHTTPServer and spending a few minutes with attendees at the event isn't a waste of time. it teaches them something that is a fundamental to actually getting real work done. if anyone has trouble we can still fallback on jsbin if necessary. |
decided to just add links to my gist to both the hackerlab meetup announcements and my own exercise. |
We need a quick way to:
a. confirm that hacker's machine has a web server installed, configd, and running
b. (if not a) the simplest possible way to get a web server-like thing onto their machine
The text was updated successfully, but these errors were encountered: