Skip to content

Running a Local Web Server

To run HoloPlay.js apps in your browser, you'll need to run a local web server from your project directory. This allows you to access your app from your browser as:

http://localhost/yourFile.html

Below are a few web server options. Be sure to start the server from your project directory.

Servez

Servez is a simple server with a GUI. Use this if you're not familiar with your terminal.

node.js http-server

Node.js has a simple HTTP server package. To install:

npm install http-server -g

To run (from your local directory):

http-server . -p 8000

Now load your project from your browser's address bar:

http://localhost:8000/

Python HTTP server

If you have Python installed, run one of these commands in your terminal (from your working directory):

// If you have Python 2 run this:
python -m SimpleHTTPServer

// Or for Python 3:
python -m http.server

Now load your project from your browser's address bar:

http://localhost:8000/