Giter Club home page Giter Club logo

Comments (14)

stephomi avatar stephomi commented on August 19, 2024

They are in the tool folder.
If you use npm run dev, it should move it to the app folder.

from sculptgl.

Yoshimaster96 avatar Yoshimaster96 commented on August 19, 2024

Which one do I open? There are two in the tool folder.

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

It won't work if you open it directly, you have to build the project first.
Simply follow the readme!

npm install -g rollup # if not already done
npm install
npm run dev # and visit app/index.html

from sculptgl.

ehipasika avatar ehipasika commented on August 19, 2024

I try to deploy it to my local server according follow your guide, but after "npm run dev" node.js command prompt noticed that 'cp' isn't internal/external command, or execuction programme. and I check my system path, it have include node.js' command. Could you tell me how to solve this problem? I would like to debug the IOS browsers' issue.

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

The command is

cp tools/index.dev.html app/index.html && rollup -cwm

^ It's in package.json. It just move index.dev.html into app/ folder and run rollup

from sculptgl.

Yoshimaster96 avatar Yoshimaster96 commented on August 19, 2024

Why don't you include a pre-built version, to make it more accessible? Unless it's platform-dependent.

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

Pre-built version needs to be updated regularly, also, there's both a minified and non-minified version.

The latest version of the code is always accessible through https://stephaneginier.com/sculptgl

I forgot that "cp" was a linux only command :), I develop on windows but I have mingw installed.
The script is dead simple though.

from sculptgl.

ehipasika avatar ehipasika commented on August 19, 2024

ok, I try to install minGW.

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

You can also replace cp with copy :), it should work the same.

from sculptgl.

ehipasika avatar ehipasika commented on August 19, 2024

I‘ve try replace copy for cp and install mingw are also not work, I am using cygwin now, and manual enter command

from sculptgl.

Raukk avatar Raukk commented on August 19, 2024

Related to this, I changed the scripts and got them running (I think), but I can't get the page to actually load.
I got to the point where the Command Line gave these messages:"
1 file(s) copied.
1 file(s) copied.
checking rollup-watch version...
bundling...
bundled in 3358ms. Watching for changes...
"

I have tried (in chrome): 'localhost', 'localhost/app/index.html', 'https://localhost/app/index.html', 'https://localhost', and 'file:///C:/Repos/sculptgl/app/index.html'
All but the last one return "localhost refused to connect." and the last one doesn't work for the usual reasons.

Is it running on a non-standard port, or did I get Rollup stuck in a loop or something weird?

I'm running a standard Windows 10, I used the Node.js Command Prompt to issue 'npm run dev'.
If I get it working on stock Windows I'll commit it back as a second set of scripts.

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

Like many js project, you have to setup a local server.

Quickest/easiest way to do is through python 2 with python -m SimpleHTTPServer 8000 or with python 3 python -m http.server 8000. And then go to http://localhost:8000/path-to-app-index.html

It's also easy to setup a quick local server with nodejs (I could also link it it up with the npm run dev...).
I personnally use xampp which is more bothersome to setup the first time.

from sculptgl.

Raukk avatar Raukk commented on August 19, 2024

It's also easy to setup a quick local server with nodejs (I could also link it it up with the npm run dev...).

Thank you for the super fast reply.
I just assumed you had set it up with Node since you require it. I'll see if I can get the node server working even though I'm a Node Noob.

from sculptgl.

nicejava avatar nicejava commented on August 19, 2024

stephomi .. i try follow your above but not work please explain step by step i use last code your update not have index.html , nmp install it's worked but nmp run dev not work !! show this below , i use appserv is webserver

copy tools/index.dev.html app/index.html && copy tools/authSuccess.html app/au
hSuccess.html && webpack -w

he syntax of the command is incorrect.
pm ERR! code ELIFECYCLE
pm ERR! errno 1
pm ERR! [email protected] dev: copy tools/index.dev.html app/index.html && copy t ols/authSuccess.html app/authSuccess.html && webpack -w
pm ERR! Exit status 1
pm ERR!
pm ERR! Failed at the [email protected] dev script.
pm ERR! This is probably not a problem with npm. There is likely additional log
ing output above.

pm ERR! A complete log of this run can be found in:
pm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-04-24T1
_19_46_003Z-debug.log

Show like this

from sculptgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.