helia-examples icon indicating copy to clipboard operation
helia-examples copied to clipboard

Docs: how to create standalone node on localhost (e.g. for testing)

Open rrthomas opened this issue 1 year ago • 0 comments

I've been trying to find out how to do this, so I can run some tests for a Helia-using program when I'm offline.

I've searched the docs and the web, and I can't find out how. Indeed, someone else had the same problem:

https://electroblog.hashnode.dev/beginners-guide-to-ipfs

says:

Something I don't yet know

Even after as much research as I did, there are a couple of things I haven't been able to fully figure out (yet) which is why I haven't discussed them in this article.

Connecting to localhost using Helia

I am looking for the right parameters to pass in the createHelia() function that will connect me to the local network instead of the default ipfs.io gateway, I have not been successful in doing this.

Apologies if I've overlooked something in the docs. I tried to understand how to do this using a suitable HeliaInit parameter to createHelia, but nothing seems to be relevant there. Thanks for Helia!

rrthomas avatar Jun 09 '24 17:06 rrthomas