metagood/OCM-Dimensions

Minimal conf for NodeJs+Docker for ThreeJS

Opened this issue · 0 comments

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

  1. git clone https://github.com/metagood/OCM-Dimensions
  2. cd OCM-Dimensions
  3. cd threejs
  4. minify 02_main.js > compressed-inputs/02_main.min.js
  5. make clean && make
  6. 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

  1. install from JS
npm i 
npm run build
# check index.html
  1. Install from Docker, configure docker-compose and exec
docker compose up -d --build

Related