NikolaySuslov / lcs-storage

DB storage server for LCS application
1 stars 1 forks source link

Examples #1

Open lazydino opened 6 years ago

lazydino commented 6 years ago

Hi Nikolay,

Can you give me some tips or examples on how gundb serving VWF? What needs to be configured to have livecoding repos serving aframe like the public live site? What do I do to make /app/aframe URL working?

NikolaySuslov commented 6 years ago

Hello Reggie,

Yes, sure. In livecoding.space application GunDB serves all VWF proxy components and World prortos with saved states (in string objects for now). So, later when VWF.js gets trough reflector server messages for creating nodes and childs, instead of using VWF server HTTP GET ajax requests, it gets the resources by using Gun().get() trough GunDB Websocket server and parse it with YAML or JSON. So, the GunDB storage should be populated during setup process (aka bottstrap). So, I recommend to go through install instructions from here, if you want to run own server. Livecoding.space application also uses GunDB SEA for user identities, so in /app/aframe URL, app - is user alias, and aframe - is a World proto user owns. At LiveCoding.space website user app is the first user registered in GunDB SEA, so it is considered as the system user by default, as he makes Setup. Thus all default World photos owned by the user with the alias app (of course you could use any other alias for your system user during setup process)

Best reagards, Nikolai