ethereum-org-website icon indicating copy to clipboard operation
ethereum-org-website copied to clipboard

Suggest a tutorial: Server components for web3 apps

Open qbzzt opened this issue 1 year ago • 5 comments

Tutorial title

Server components for web3 apps

Tutorial description

After this tutorial, you will be able to write TypeScript servers that listen to events on a blockchain and respond accordingly with their own transactions. This will enable you to write applications that are centralized (because the server is a point of failure), but can interact with web3 entities.

Tutorial tags

server, offchain, centralized

Skill level

Beginner

Hosted on ethereum.org or hosted elsewhere?

Hosted on ethereum.org

For tutorials to be hosted on Ethereum.org: Tutorial Content

  • Introduction: Why a Centralized Server?
  • Getting started: Node, TypeScript, and Viem
  • Listening to Events
  • Responding with Transactions
  • Conclusion, when is this an appropriate solution?

For tutorials hosted elsewhere: URL to tutorial

No response

Would you like to work on this issue?

  • [X] Yes
  • [ ] No

qbzzt avatar Jun 13 '24 06:06 qbzzt

@qbzzt Interesting... so would these "server components" be like front end components? Or more of an API that is listening to events and capable of responding with actions?

cc: @minimalsm

wackerow avatar Jun 13 '24 15:06 wackerow

They can be either. I'm thinking of a use case that requires listening to events, but it can be triggered by any other input too.

qbzzt avatar Jun 13 '24 15:06 qbzzt

Gotcha, I see what you're getting at here. Sounds good from my end!

wackerow avatar Jun 19 '24 23:06 wackerow

Written (#13228). Next, I'll submit a proposal for a sequel that teaches how to use zero-knowledge proofs for a centralized component that holds a secret state and can be trusted (#13234). Do you think it's better to use Zokrates or Cairo?

qbzzt avatar Jun 23 '24 04:06 qbzzt

Written (#13228). Next, I'll submit a proposal for a sequel that teaches how to use zero-knowledge proofs for a centralized component that holds a secret state and can be trusted (#13234). Do you think it's better to use Zokrates or Cairo?

@qbzzt Not sure personally as these aren't tools I have familiarity with; feel like I've heard more about Zokrates lately though, but I'll let you be the judge.

wackerow avatar Jun 29 '24 18:06 wackerow

This issue is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Jul 30 '24 08:07 github-actions[bot]