Difference between revisions of "Running Sites Locally"
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 | + | # 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.
- Open a terminal window or the terminal in your code editor.
- Navigate to your repository folder. This should be something like: cse256a-s20-<YOURWUSTLKEY>.
- Next, start a local webserver from that directory by running:
python -m http.server 8000.
- Navigate to your project in your browser of choice. For the first project this would be: http://localhost:8000/information-foraging/files/index.html