Starting local web server

Use a simple python script:

1. Find out if you have python installed:
enter python in the terminal
$ python
if you get response showing the python version number, it is installed. if not, install python:

2. cd to the directory that you want to make a server:
$ cd Documents/myExampleDirectory

3. Run this script (you can change the port)
$ python -m SimpleHTTPServer 8000

Once the server starts you can open it in the browser: http://localhost:8000/

Using Mamp:
(you don’t need pro)

Download and install.
Run the application.
The files that you want to test should go in the mamp folder in httdocs

Leave a reply

Skip to toolbar