Minimal conf for NodeJs+Docker for ThreeJS
Opened this issue · 0 comments
netzulo commented
Hey , im trying to use but got some barriers before i can start with OCM-dimensions.
Behaviour obtained
- Don't have JS setup files
- Don't have docker configuration
- Can't visualize compressed html with my own model using threejs
- Minimal steps to start
Behaviour expected
- Have JS setup files
- Have docker configuration
- Can visualize compressed html with my own model using threejs
- So much steps before start
Steps to reproduce
- git clone https://github.com/metagood/OCM-Dimensions
- cd OCM-Dimensions
- cd threejs
- minify 02_main.js > compressed-inputs/02_main.min.js
- make clean && make
- open "index.html"
Notes
- I have my own 3D model at
myModel.glb
- I'm running all of this down Ubuntu 22.04 LTS
- Im uploading code for JS setup and minimal docker configuration, but images will be ready to parametrize 3dModel path, this is not done yet in my patch
After update users just need to
- install from JS
npm i
npm run build
# check index.html
- Install from Docker, configure docker-compose and exec
docker compose up -d --build