Sign inSign up

reimashi/web-3d-viewer

By reimashi

•Updated over 8 years ago

Web to store, manage and preview 3D models

Image
0

1.4K

reimashi/web-3d-viewer repository overview

⁠web-3d-viewer

Web to store 3D models and preview it

⁠Generate client

  1. Get the dependencies
yarn install
  1. Get the webpack CLI
yarn global add webpack-cli
  1. Generate the client (By default, in ./dist)
webpack-cli --config webpack.config.js

⁠Generate server

  1. Get the dependencies
mvn dependency:resolve
  1. Generate the JAR binary
mvn package
  1. Run the JAR. By default, it search the client files in ../client/dist

⁠Deploy all with docker

docker run -p 80:4080/tcp reimashi/web-3d-viewer

⁠Configure

The server can be configurated through environment variables:

  • WEB_PORT: Http port (Default: 4080)
  • WEB_AUTH_ENABLE: Enable or disable the authentication (Default: false)
  • WEB_USER: User for authentication (Default: admin)
  • WEB_PASS: User password for authentication (Default: admin)
  • STATIC_PATH: Path for the static files inside the container (Default: /client)
  • DATABASE_PATH: Path for the database file inside the container (Default: /database)

Tag summary

Content type

Image

Digest

Size

108.2 MB

Last updated

over 8 years ago

docker pull reimashi/web-3d-viewer