Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 849 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 849 Bytes

JanusVR Inventory server scripts

Installation

Requires IPFS running: https://ipfs.io/ Requires composer: https://getcomposer.org/

$ git clone https://github.com/Spyduck/janusvr-inventory.git
$ cd janusvr-inventory/inventory/php
$ composer install

PHP scripts need to be available at:

(host prefix)/inventory/add
(host prefix)/inventory/addjson
(host prefix)/inventory/catjson

Example:

<Directory /var/www/html>
	Options FollowSymLinks
	AllowOverride All
	RewriteEngine on
	RewriteRule ^inventory/catjson/(.*)$ inventory/php/catjson.php?hash=$1 [L,NC,PT]
	RewriteRule ^inventory/addjson inventory/php/addjson.php [L,NC,PT]
	RewriteRule ^inventory/add inventory/php/add.php [L,NC,PT]
</Directory>```

IPFS port is assumed and can be changed at the top of each .php at:

$ipfs = new IPFS("localhost", "8080", "5001");