amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.16k stars 1.17k forks source link

HTTP and HAPI examples broken #797

Open 34r7h opened 5 years ago

34r7h commented 5 years ago

Please update with working examples of server. HTTP example doesn't create a json file and returns directory read error. HAPI example return forbidden 401 error. Documentation would be helpful.

amark commented 5 years ago

@34r7h HTTP example should be working, all the sites and apps run it by default with npm start.

Data is saved by default in ./radata/.

Could you please provide a stack trace / error of HTTP not working?

Docs are here: https://gun.eco/docs/Installation

I'll probably just deprecate the HAPI example, it was community contributed, if nobody can help support it, I'll need to delete it since I don't use HAPI myself.

34r7h commented 5 years ago

Thanks, @amark. You're right, Hapi should be removed to avoid confusion. The docs are too sparse and should include further details to get a server up, i.e. npm init, create start -> node index.js, and some endpoints or instructions on interacting.

Server is running and folders created but no files made. I'm seeing the following err after the limited docs: Error: EISDIR: illegal operation on a directory, read