You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current examples section just links to external sources for go, js and rust.
I think there's a big opportunity to take those external examples and rework them a bit, pull them into the site, and use them as teaching tools to walk people through libp2p use cases.
I think that keeping the examples in their own repos will probably work best, since that's the easiest place to keep them up-to-date and integrated with CI.
My tentative plan is to clone the example repos as part of the build process for this site, run them through some formatting, and embed the result into the site.
For this to work well, some work needs to be done on the example repos so that they all have enough narrative & framing around them, and I need to develop the formatting / build process.
// The context governs the lifetime of the libp2p node.// Cancelling it will stop the the host.ctx, cancel:=context.WithCancel(context.Background())
defercancel()
Reach out to other implementations (Python, Nim, Zig, etc) to be included in examples page. Will close the child tickets in favor of this one. @DannyS03 plans to combine the Tutorials and Examples section in the future, so some of this work will be addressed by that.
After having touched on this issue (and idea) a few times in the latter half of 2022, the preference among the stewards is to keep the examples in their respective repos.
We also have a general "Guides" section now that provides guides to get started with libp2p, and it will continue to refer to the examples in each repo (for example, as mentioned here). Implementations that do not have a getting started guide will be added shortly.
As a result, let's close this and revisit if necessary.
Activity
tristanisham commentedon Mar 19, 2022
@yusefnapora I created a pull for the Go getting started example. In its current state, it won't compile. There's no mention of the necessary declaration of
ctxas seen in the last two code snippets of the document.p-shahi commentedon Aug 26, 2022
Reach out to other implementations (Python, Nim, Zig, etc) to be included in examples page. Will close the child tickets in favor of this one. @DannyS03 plans to combine the Tutorials and Examples section in the future, so some of this work will be addressed by that.
salmad3 commentedon Jan 9, 2023
After having touched on this issue (and idea) a few times in the latter half of 2022, the preference among the stewards is to keep the examples in their respective repos.
We also have a general "Guides" section now that provides guides to get started with libp2p, and it will continue to refer to the examples in each repo (for example, as mentioned here). Implementations that do not have a getting started guide will be added shortly.
As a result, let's close this and revisit if necessary.