ipfs-examples / helia-examples

How to do most anything with your Helia node
https://verified-fetch.vercel.app
64 stars 58 forks source link

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

Open rrthomas opened 4 weeks ago

rrthomas commented 4 weeks ago

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!