- 
      
- 
        Save saravankumarpa/255514357958aa2d70b46a80c4beae6f to your computer and use it in GitHub Desktop. 
Revisions
- 
        jgravois revised this gist Feb 20, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,7 +55,7 @@ Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Softw python -m http.server 1337 ``` 2. now you should be able to access your own files via http://localhost:1337/myfile.html in Chrome, Firefox or any other web browser. ```html <html> 
- 
        jgravois revised this gist Apr 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -86,6 +86,6 @@ Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Softw ``` http-server ./[yourfolder] -p 1337 ``` 4. now you should be able to access your files (via something like http://localhost:1337/myfile.html) in a web browser. # thats it! 
- 
        jgravois revised this gist Jan 12, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,13 +46,15 @@ you don't **need** a *why*, but here are a couple: Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Software) so it's [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) module is an **excellent** choice. 1. navigate into the folder where you plan on saving your `.html` files (using terminal/cmd) and execute the following command: ```python python -m SimpleHTTPServer 1337 ``` if you're using Python 3.x or higher, you'd use ```python python -m http.server 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. ```html 
- 
        jgravois revised this gist Jan 12, 2016 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,13 +46,13 @@ you don't **need** a *why*, but here are a couple: Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Software) so it's [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) module is an **excellent** choice. 1. navigate into the folder where you plan on saving your `.html` files (using terminal/cmd) and execute the following command: ```python python -m SimpleHTTPServer 1337 ``` if you're using Python 3.x or higher, you'd use ```python python -m http.server 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. ```html 
- 
        jgravois revised this gist Jan 12, 2016 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,13 +46,13 @@ you don't **need** a *why*, but here are a couple: Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Software) so it's [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) module is an **excellent** choice. 1. navigate into the folder where you plan on saving your `.html` files (using terminal/cmd) and execute the following command: ```python python -m SimpleHTTPServer 1337 ``` if you're using Python 3.x or higher, you'd use ```python python -m http.server 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. ```html 
- 
        jgravois revised this gist Jan 12, 2016 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,10 +46,12 @@ you don't **need** a *why*, but here are a couple: Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Software) so it's [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) module is an **excellent** choice. 1. navigate into the folder where you plan on saving your `.html` files (using terminal/cmd) and execute the following command: ```python python -m SimpleHTTPServer 1337 ``` if you're using Python 3.x or higher, you'd use ```python python -m http.server 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. 
- 
        jgravois revised this gist Jan 12, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,7 +47,9 @@ Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Softw 1. navigate into the folder where you plan on saving your `.html` files (using terminal/cmd) and execute the following command: ``` python -m SimpleHTTPServer 1337 // python 2.x // or python -m http.server 1337 // python 3.x ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. 
- 
        jgravois revised this gist Sep 28, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -63,7 +63,7 @@ python -m SimpleHTTPServer 1337 ### http-server (for Node) [Node.js](https://nodejs.org) gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the npm module [`http-server`](https://www.npmjs.com/package/http-server) is a **really** good choice too.  
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ___ having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (`.html`, `.js` etc.) in a browser via `http://`. if you're not sure whether or not you have a web server running, no problem! its easy to confirm. 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,7 +67,7 @@ Node.js gets more popular by the day, so if you already have it installed (or do  1. if you haven't already installed Node.js, visit the site below and lay it down https://nodejs.org/en/download/ 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,6 +51,14 @@ python -m SimpleHTTPServer 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. ```html <html> <body> <h1>i'm web serving!</h1> </body> </html> ```  ### http-server (for Node) 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,7 +51,7 @@ python -m SimpleHTTPServer 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser.  ### http-server (for Node) 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,6 +51,8 @@ python -m SimpleHTTPServer 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser.  ### http-server (for Node) Node.js gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the module http-server is a **really** good choice too. 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewingLoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,6 +19,8 @@ the most popular web server software for microsoft computers is **IIS**. if its https://msdn.microsoft.com/en-us/library/ms181052(v=vs.80).aspx  afterward, save a `.html` file in `C:/inetpub/wwwroot` and try to access it via http://localhost/[myfile].html. if the page is served up, you're ready to roll. ## Mac 
- 
        jgravois renamed this gist Sep 15, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewingFile renamed without changes.
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,7 +53,7 @@ python -m SimpleHTTPServer 1337 Node.js gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the module http-server is a **really** good choice too.  1. if node isn't already installed, visit the site below and lay it down 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,7 +53,7 @@ python -m SimpleHTTPServer 1337 Node.js gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the module http-server is a **really** good choice too.  1. if node isn't already installed, visit the site below and lay it down 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,7 +53,7 @@ python -m SimpleHTTPServer 1337 Node.js gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the module http-server is a **really** good choice too.  1. if node isn't already installed, visit the site below and lay it down 
- 
        jgravois revised this gist Sep 15, 2015 . 2 changed files with 2 additions and 0 deletions.There are no files selected for viewingLoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,6 +53,8 @@ python -m SimpleHTTPServer 1337 Node.js gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the module http-server is a **really** good choice too.  1. if node isn't already installed, visit the site below and lay it down https://nodejs.org/en/download/ 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,7 +61,8 @@ Node.js gets more popular by the day, so if you already have it installed (or do ``` npm install http-server -g ``` 3. run it using CLI (specifying the folder you'd like to serve files from) ``` http-server ./[yourfolder] -p 1337 ``` 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,16 +55,16 @@ Node.js gets more popular by the day, so if you already have it installed (or do 1. if node isn't already installed, visit the site below and lay it down https://nodejs.org/en/download/ 2. next, open terminal or cmd and install the `http-server` module globally on your machine ``` npm install http-server -g ``` 3. run its command (specifying the folder you'd like to serve files from) ``` http-server ./[yourfolder] -p 1337 ``` 4. now you should be able to access your files (via something like http://localhost/myfile.html:1337) in a web browser. # thats it! 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,6 +56,7 @@ Node.js gets more popular by the day, so if you already have it installed (or do 1. if node isn't already installed, visit the site below and lay it down https://nodejs.org/en/download/ 2. next, open terminal or cmd and install the `http-server` module globally on your machine ``` npm install http-server -g 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,11 +47,11 @@ Python comes preinstalled on Macs (and is installed on Windows with ArcGIS Softw ``` python -m SimpleHTTPServer 1337 ``` 2. now you should be able to access your own files via http://localhost/myfile.html:1337 in Chrome, Firefox or any other web browser. ### http-server (for Node) Node.js gets more popular by the day, so if you already have it installed (or don't mind taking two minutes to do it now) the module http-server is a **really** good choice too. 1. if node isn't already installed, visit the site below and lay it down @@ -64,6 +64,6 @@ npm install http-server -g ``` http-server ./[yourfolder] -p 1337 ``` 4. now you should be able to access your files (via something like http://localhost/myfile.html:1337) in a web browser. # thats it! 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,8 @@ if you're not sure whether or not you have a web server running, no problem! it if you're looking at a webpage, **great**! you're done. # What if i don't? ## Windows the most popular web server software for microsoft computers is **IIS**. if its not already running, you can follow the instructions below to get things set up. 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ___ having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load static files (`.html`, `.js` etc.) on your own computer via `http://` in a browser. if you're not sure whether or not you have a web server running, no problem! its easy to confirm. ### what happens when you visit [http://localhost/](http://localhost/)? 
- 
        jgravois revised this gist Sep 15, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ___ having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load static files (`.html`, `.js` etc.) on your own computer via `http://` in a browser. if you're not sure whether or not you have one running, no problem! its easy to confirm. @@ -17,14 +17,14 @@ the most popular web server software for microsoft computers is **IIS**. if its https://msdn.microsoft.com/en-us/library/ms181052(v=vs.80).aspx afterward, save a `.html` file in `C:/inetpub/wwwroot` and try to access it via http://localhost/[myfile].html. if the page is served up, you're ready to roll. ## Mac **Apache** comes preinstalled on Apple computers. If its not running, you can follow the instructions below to get it turned on. http://osxdaily.com/2012/09/02/start-apache-web-server-mac-os-x/ afterward, save a `.html` file in `~/Users/[yourlogin]/Sites/` and try to access it via http://localhost/~[yourlogin]/myfile.html. if you can view the content, all is well. ___ :musical_note: interlude :musical_note: 
- 
        jgravois revised this gist Sep 14, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ___ having a web server turned on doesn't mean you are serving pages to the public, only that you can debug your own work locally. if you're not sure whether or not you have one running, no problem! its easy to confirm. ### what happens when you visit [http://localhost/](http://localhost/)? 
- 
        jgravois revised this gist Sep 14, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ afterward, save a `.html` file in `C:/inetpub/wwwroot` and try to access it via http://osxdaily.com/2012/09/02/start-apache-web-server-mac-os-x/ afterward, save a `.html` file in `~/Users/[yourlogin]/Sites/` and try to access it via http://localhost/~[yourlogin]/myfile.html to make sure all is well. ___ :musical_note: interlude :musical_note: 
- 
        jgravois revised this gist Sep 14, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ afterward, save a `.html` file in `C:/inetpub/wwwroot` and try to access it via http://osxdaily.com/2012/09/02/start-apache-web-server-mac-os-x/ afterward, save a `.html` file in `~/Users/[yourlogin]/Sites/` and try to access it via http://localhost/~[you]/myfile.html to make sure all is well. ___ :musical_note: interlude :musical_note: 
NewerOlder