examples icon indicating copy to clipboard operation
examples copied to clipboard

Azle (TypeScript) examples

Open lastmjs opened this issue 2 years ago • 4 comments

Azle is a TypeScript CDK for the Internet Computer. We've been creating many examples, some from this repo, here. Just wondering if you'd accept pull requests for examples written in TypeScript with Azle.

lastmjs avatar Jul 27 '22 15:07 lastmjs

Hi Jordan, apologies for the ridiculously late response. If I don't respond within 2-3 days it means that I missed the request. Feel free to ping me again next time.

After some back and forth we decided that for now, we do not accept examples in more frameworks to the repo because of the maintenance burden of keeping up with many different frameworks. Our consensus was basically "If it was only Jordan, we'd accept in a heartbeat, but we don't want to set the precedent."

I can present you two alternatives that you hopefully like (and would be happy about feedback):

  • Adding an overview of Azle and plenty of links to your examples to our documentation as described in this forum post
  • We have a community section planned for the official sample code page. There, we'd love to have links to as many of your individual examples as you like adding. We'll have some simple instructions on how to add them, too. Last I heard it was planned for roughly next week, but you know how good we are at keeping schedules...

sesi200 avatar Aug 19 '22 06:08 sesi200

This all sounds great, thanks!

lastmjs avatar Aug 19 '22 10:08 lastmjs

How can I add examples to the community section? And on the community section, it would be nice if the language filter could somehow differentiate between frontend code and canister code. For example, nearly every app will use JavaScript, but that doesn't reflect what the canister is written in.

lastmjs avatar Sep 26 '22 17:09 lastmjs

Adding an example:

  • Add your project to /static/supernovaProjects.json (Yes, I know the name is inaccurate, but it works)
  • Add the picture for your tile to /static/img/samples/supernovaSubmissions

I agree that the language filter is not perfect as is, but I can't get anyone to rework that right now. You could, however, add Azle or TypeScript as a Language in /src/components/SamplesPage/FilterBar/index.tsx

sesi200 avatar Sep 27 '22 09:09 sesi200