jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.67k stars 516 forks source link

Local host OpenJSCad.org #479

Closed ikeji closed 5 years ago

ikeji commented 5 years ago

My CAD machine is offline. I want to setup local web server with OpenJSCad.org contents.

Expected Behavior

the packages/web folder should have index.html

Actual Behavior

There are no index.html file.

Steps to Reproduce the Problem

I'm following "Use within a Web Site (pre built files)" steaps. https://github.com/jscad/OpenJSCAD.org/tree/master/packages/web#use-within-a-web-site-pre-built-files

  1. Clone this repo.
  2. Setup webserver based on packages/web
  3. access to http://localhost/index.html

Specifications

z3dev commented 5 years ago

@ikeji What HTTP server are you using?

The server needs to be configured properly.

ikeji commented 5 years ago

I use python's SimpleHTTPServer module.

Here is detailed steps:

  1. git clone https://github.com/jscad/OpenJSCAD.org
  2. cd OpenJSCAD.org
  3. git checkout V2
  4. cd packages/web
  5. python -m SimpleHTTPServer 8000
  6. Access http://localhost:8000/
% python --version
Python 2.7.13
z3dev commented 5 years ago

I see... you are trying to use the V2 branch. We are getting close but V2 isn’t ready now.

ikeji commented 5 years ago

Oh, OK, thanks for clarification.