Difference between revisions of "Running Sites Locally"

From CSE256A Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
 
# Next, start a local webserver from that directory by running:
 
# Next, start a local webserver from that directory by running:
 
<pre>python -m http.server 8000.</pre>
 
<pre>python -m http.server 8000.</pre>
−
# Navigate to your project in your browser of chioce. For the first project this would be: http://localhost:8000/information-foraging/files/index.html
+
# Navigate to your project in your browser of choice. For the first project this would be: http://localhost:8000/information-foraging/files/index.html

Revision as of 16:39, 18 May 2020

Python provides an easy way to to test your submissions locally as you work on your assignments.

  1. Open a terminal window or the terminal in your code editor.
  2. Navigate to your repository folder. This should be something like: cse256a-s20-<YOURWUSTLKEY>.
  3. Next, start a local webserver from that directory by running:
python -m http.server 8000.
  1. Navigate to your project in your browser of choice. For the first project this would be: http://localhost:8000/information-foraging/files/index.html