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:
https://www.python.org/downloads/mac-osx/
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:
http://www.mamp.info/en/
(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