Comments (11)
a) on the machine running the web server, open a browser and type in http://localhost/ ---- blank page = no functioning web server
b) Apache? interested in hearing others' thoughts - I have not done this myself
c) is a self-hosted website the best option for this hacker? Would an internal file share or externally hosted site work better with less security risk to the users' home network?
Thanks for posting this question!
from geodev-hackerlabs.
@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.
from geodev-hackerlabs.
i've got a sample here.
please feel to critique, revise, bash etc. i've got thick skin and i'm not married to any of it.
cc/ @nixta
from geodev-hackerlabs.
@JimBarry @jgravois What sections do we need a web server for? WAB?
from geodev-hackerlabs.
WAB doesn't need it, no, but doing stuff with the jsapi or leaflet im assuming does.
from geodev-hackerlabs.
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.
from geodev-hackerlabs.
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).
from geodev-hackerlabs.
@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.
from geodev-hackerlabs.
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.
from geodev-hackerlabs.
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:
( just realized the two windows are dynamically tied. which is pretty cool. i still don't like the fact that you have to sift through the extra code that js.bin injects, but with a tiny tutorial, its an 80% better option than i originally thought)
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.
from geodev-hackerlabs.
decided to just add links to my gist to both the hackerlab meetup announcements and my own exercise.
from geodev-hackerlabs.
Related Issues (20)
- Extrude lab should use pdx neighborhoods data HOT 1
- Esri-Leaflet lab doesn't render layers in correct order HOT 2
- Orgs can disable Share Everyone permission HOT 1
- Suggestion: Import Data HOT 3
- Combine 2D and 3D search widget labs
- Update to JS API 4.2 HOT 2
- Add an Arcade sample
- Consider advertising hackerlabs as Enterprise-ready. HOT 1
- Light Green Vector Basemap - Example Live Map does not load HOT 2
- Update 3D scene lab for smart mapping capabilities HOT 5
- more python labs HOT 1
- Errors when trying to add vector basemap HOT 4
- PDX request for hackerlab focusing on custom WAB widget development
- Sample Map for Create WebMap lab missing? HOT 2
- Need better chart example
- Add a Create View sample
- Search Widget Developer Lab: Startup not needed? HOT 2
- use 'master' as default branch instead of 'gh-pages' HOT 4
- New Wiki docs HOT 1
- Issue with "Search with a Query Task" select element HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geodev-hackerlabs.