gpjt / webgl-lessons

https://github.com/tparisi/webgl-lessons is now the officially maintained fork for this project

Home Page:http://learningwebgl.com/lessons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux server

philandy opened this issue · comments

Just wanted to provide a quick Linux server option to go with the section on XAMPP.

  1. Open a command line, such as terminal.
  2. Install nodejs with your package manager.
  3. nodejs comes with the npm market, so use npm to install http-server with the -g flag (likely npm install http-server -g). -g is to install http-server with the global npm install instead of just in the current directory.
  4. Run http-server --cors (cors is for the whole cross origin thing) in the directory with your working files.