VRwikiMuseum

所属分类:虚拟/增强现实-VR/AR
开发工具:JavaScript
文件大小:4496KB
下载次数:0
上传日期:2017-08-08 23:28:14
上 传 者sh-1993
说明:  维基博物馆,,
(VRwikiMuseum,,)

文件列表:
.dockerignore (39, 2017-08-09)
Dockerfile (339, 2017-08-09)
LICENSE (1082, 2017-08-09)
client (0, 2017-08-09)
client\dist (0, 2017-08-09)
client\dist\assets (0, 2017-08-09)
client\dist\assets\pageModels (0, 2017-08-09)
client\dist\assets\pageModels\__default (0, 2017-08-09)
client\dist\assets\pageModels\__default\model.dae (227489, 2017-08-09)
client\dist\assets\pageModels\__default\model (0, 2017-08-09)
client\dist\assets\pageModels\__default\model\_1265419427807108007road_work_Under_Construction.svg.med.png (13857, 2017-08-09)
client\dist\assets\pageModels\stegoceras (0, 2017-08-09)
client\dist\assets\pageModels\stegoceras\model.dae (2804083, 2017-08-09)
client\dist\assets\pageModels\stegoceras\model (0, 2017-08-09)
client\dist\assets\pageModels\stegoceras\model\brachylophosaurus2.jpg (65733, 2017-08-09)
client\dist\assets\pageModels\stegoceras\model\stegoceras.jpg (15415, 2017-08-09)
client\dist\assets\pageModels\stegosaurus (0, 2017-08-09)
client\dist\assets\pageModels\stegosaurus\model.dae (5559156, 2017-08-09)
client\dist\assets\pageModels\stegosaurus\model (0, 2017-08-09)
client\dist\assets\pageModels\stegosaurus\model\stegosaurus.jpg (79365, 2017-08-09)
client\dist\assets\textures (0, 2017-08-09)
client\dist\assets\textures\columnSkin.jpg (47921, 2017-08-09)
client\dist\assets\textures\columnSkin.png (197669, 2017-08-09)
client\dist\assets\textures\marbleSurface.jpg (165661, 2017-08-09)
client\dist\assets\textures\marbleTile.jpg (66951, 2017-08-09)
client\dist\assets\textures\marbleTile2.jpg (216640, 2017-08-09)
client\dist\assets\textures\marbleTile3.jpg (225369, 2017-08-09)
client\dist\assets\textures\marbleTile4.jpg (191521, 2017-08-09)
client\dist\assets\textures\marbleTile5.jpg (10993, 2017-08-09)
client\dist\assets\textures\stucco.jpg (196632, 2017-08-09)
client\dist\assets\textures\stucco2.jpg (198252, 2017-08-09)
client\index.html (169, 2017-08-09)
client\index.js (509, 2017-08-09)
client\lib (0, 2017-08-09)
client\lib\aframe (0, 2017-08-09)
client\lib\aframe\LICENSE (1068, 2017-08-09)
... ...

# wikiMuseumVR The VR Wiki Museum is a proof of concept for the possibilities of the VR web. It dynamically pulls information from any wikipedia page and can represent the same information both in 2D and in the form of a 3D/VR museum room. ## Requirements - npm [install here](http://blog.npmjs.org/post/85484771375/how-to-install-npm) - docker [install here](https://docs.docker.com/engine/installation/) ## Setup server This project is setup to be developed and run either locally, or on a local or deployed docker-machine. Running the app via Docker will ensure a consistent environment across computers and is therefore recommended. #### Docker Docker provides a means of packaging applications and their relevant dependencies into blank Linux 'containers' to ensure consistency between development and production environments. 'Dockerfile' provides instructions for how to build the app image and install dependencies Use the following instructions to run the Wiki Museum server via docker: __Step 1: Install Docker__ If you don't have it already, you will need to install the [Docker toolbox](https://docs.docker.com/engine/installation/mac/). This will enable you to setup Docker machines, build Docker images, and compose containers. __Step 2: Select docker-machine__ ``` $ docker-machine ls ``` The machine marked with an asterix is currently active. To select a docker-machine, run ``` $ eval $(docker-machine env [name of docker-machine])) ``` __Step 3: Build Docker image__ The Dockerfile provides instructions on how to build the docker image (and ultimately run the container). Run the following in the command line to build the image ``` $ npm run build ``` __Step 4: Run Docker container__ Running the container will execute the command in the CMD line of the Dockerfile. To run the container based on the newly-built images, run the following: ``` $ npm run deploy ``` To see running containers on your docker-machine: ``` $ docker ps ``` Use the '-a' flag to view all containers, as opposed to just those which are running. To see the most recent logs from a container process, run ``` $ docker logs [container ID] ``` __Step 5: Remove container and image to rebuild__ If you make changes to the server code, you will need to destroy the existing Thumbroll container and image to allow Docker to rebuild. The postgres container and image do not need to be removed. To see all containers on the docker-machine: ``` $ docker ps -a ``` To force stop and delete a container: ``` $ docker rm -f [container id] ``` To see all images on the docker-machine: ``` $ docker images ``` To remove an image: ``` $ docker rmi [imageID] ``` #### Local Instead of running the server within Docker containers, the server may also be run locally. __Step 1: Install dependencies__ ``` $ npm install ``` __Step 2: Install Webpack__ ``` $ npm install -g webpack ``` __Step 3: Run server__ ``` $ npm start ```

近期下载者

相关文件


收藏者