GithubHelp home page GithubHelp logo

Comments (11)

LDittmann avatar LDittmann commented on June 25, 2024

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.

jgravois avatar jgravois commented on June 25, 2024

@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.

jgravois avatar jgravois commented on June 25, 2024

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.

alaframboise avatar alaframboise commented on June 25, 2024

@JimBarry @jgravois What sections do we need a web server for? WAB?

from geodev-hackerlabs.

JimBarry avatar JimBarry commented on June 25, 2024

WAB doesn't need it, no, but doing stuff with the jsapi or leaflet im assuming does.

from geodev-hackerlabs.

alaframboise avatar alaframboise commented on June 25, 2024

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.

jgravois avatar jgravois commented on June 25, 2024

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.

alaframboise avatar alaframboise commented on June 25, 2024

@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.

image

from geodev-hackerlabs.

andygup avatar andygup commented on June 25, 2024

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.

jgravois avatar jgravois commented on June 25, 2024

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.

jgravois avatar jgravois commented on June 25, 2024

decided to just add links to my gist to both the hackerlab meetup announcements and my own exercise.

from geodev-hackerlabs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.