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:
1
http://localhost/yourFile.html
Copied!
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:
1
npm install http-server -g
Copied!
To run (from your local directory):
1
http-server . -p 8000
Copied!
Now load your project from your browser's address bar:
1
http://localhost:8000/
Copied!

Python HTTP server

If you have Python installed, run one of these commands in your terminal (from your working directory):
1
// If you have Python 2 run this:
2
python -m SimpleHTTPServer
3
4
// Or for Python 3:
5
python -m http.server
Copied!
Now load your project from your browser's address bar:
1
http://localhost:8000/
Copied!
Last modified 6mo ago