Chrome has a permissions policy for local file:// testing that disallows AJAX requests, and some APIs do not work on file:// URLs in all browsers, so if possible, we recommend trying to run a simple server on your machine. If the steps below do not work for you, then we recommend using Firefox or pairing with someone who can run a local server.
Macs and most Linux distros come with Python preinstalled. The following steps should work without additional setup:
cd
command.python -m SimpleHTTPServer
python -m http.server 8000
If you are running Windows, you will need to make sure you have Python installed. To check, open a command prompt and enter python
. If you see a response including the version number, Python is ready to go. Note whether the version starts with 2 or 3, press ctrl+c to return to the regular command prompt, and follow steps 2-4 of the Mac instructions above.
If the python
command produces an error message, follow the steps below to install Python:
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
Python27
in the code above with the directory name on your computer.)
python
command again. You should now see a response with the Python version number. Using PowerShell or command line, follow steps 2-4 of the Mac instructions above.
If you are using a Chromebook for web development, you will probably want to install Linux. More info can be found here.