Running Sites Locally

From CSE256A Wiki
Jump to navigation Jump to search

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