2024-09-19
· One min read
Agenda: Discord thread
SDF DevRel team member Carsten Jacobsen showed how to build a simple Hello World dapp based on a Soroban smart contract and Next.js through these steps:
- Create the default Hello World smart contract using the Stellar CLI
- Create TypeScript bindings (package) using the Stellar CLI
- Create the default Next.js using the npx create-next-app command
- Add and link the TypeScript binding package to the Next.js project
- Create a simple frontend with a form to submit a string
- Import the package in the Next.js page, and setup a client
- Create submit-function to send form value to the smart contract
- Use useState to store the smart contract response and display it