Skip to content

Improve Examples section #29

Closed
Closed

Description

@yusefnapora

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.

Activity

  1. self-assigned this
    on Mar 19, 2019
  2. tristanisham commented on Mar 19, 2022

    @tristanisham

    @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 ctx as seen in the last two code snippets of the document.

     // The context governs the lifetime of the libp2p node.
    // Cancelling it will stop the the host.
    ctx, cancel := context.WithCancel(context.Background())
    defer cancel()
  3. p-shahi commented on Aug 26, 2022

    @p-shahi
    Member

    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.

  4. moved this to 🏃‍♀️ In Progress in go-libp2pon Aug 31, 2022
  5. added
    area:guidesTutorials, how-tos, examples, and common guides.
    type:enhancementContent enhancement, new feature or request.
    and removed
    type:enhancementContent enhancement, new feature or request.
    on Nov 23, 2022
  6. salmad3 commented on Jan 9, 2023

    @salmad3
    Contributor

    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.

  7. moved this from 🏃‍♀️ In Progress to 🎉 Done in go-libp2pon Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    🎉 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions