ProtoSchool / protoschool.github.io

The code that runs the ProtoSchool website. Visit https://proto.school for interactive tutorials on decentralized web protocols. Explore IPFS and Filecoin through code challenges, code-free lessons, and local events.
https://proto.school
Other
166 stars 67 forks source link

Add helia #881

Open ElPaisano opened 1 year ago

ElPaisano commented 1 year ago

This PR adds Helia to the project so that we can create Helia tutorials.

TLDR;

can import helia, local build works, created a lesson using protowizard, but cant figure out how to actually use Helia in the lessons without causing build errors. Also, staging build is failing

Steps:

  1. cd into project
  2. npm install helia -> adds to package.json
  3. open Lesson.vue
  4. Add helia
    • as global (line 205)
    • modules (line 178)
    • eval function (line 172)
  5. npm start -> actually works, wasn't working when I tried to import helia
  6. create helia 101 lesson
  7. Verify helia appears on line 1 of code editor in lesson /* global ipfs, helia, all, toBuffer */
  8. Try to create a node
    • can't `import { createHelia } from "helia"' without error