0.1.0 • Published 1 year ago

threedr-viewer v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

3dr-viewer-demo

Panorama demo viewer for 3DR project

Authors

  • 박소영 p.soyoung@naverlabs.com

Development Environment

  • npm
  • node@19.4.0
  • protoc (protocol buffer compiler)
    • MacOS:
      $ brew install protobuf
      $ protoc --version
    • Linux:
      $ sudo apt install protobuf-compiler
      $ protoc --version
    • 원래는 npm install --save-dev protoc 으로 설치하려 했는데, \ M1 Mac에서 실행이 안되는 이슈가 있어서, 부득이하게 시스템에 protobuf 설치하도록 함.

Build

  • Build distribution files:
    $ npm install
    $ npm run build
    • Then distribute all files in dist/ directory:
      dist/
      |- threedr-viewer.js
  • Test a sample and demo page in your local environment:
    • Open python server:
      $ python -m http.server <port-number>
      Then open http://localhost:<port-number>/demo/.
    • Or open with rollup:
      $ npm run test
      Then open http://localhost:9004/demo/.
  • Clean dist/ directory:
    $ npm run clean
0.1.0

1 year ago