-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create 2024-09-19.mdx * Update 2024-09-19.mdx
- Loading branch information
1 parent
13a9c1b
commit 36a0d61
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: '2024-09-19' | ||
authors: carstenjacobsen | ||
tags: [developer] | ||
--- | ||
|
||
<iframe src="https://drive.google.com/file/d/1yIzMrtyuJkX6W8MlIbwrGNivYqHuhoxH/preview" width="640" height="480" allow="autoplay"></iframe> | ||
|
||
Agenda: [Discord thread](https://discord.com/channels/897514728459468821/900374272751591424/1285627254130610297) | ||
|
||
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: | ||
|
||
1. Create the default Hello World smart contract using the Stellar CLI | ||
2. Create TypeScript bindings (package) using the Stellar CLI | ||
3. Create the default Next.js using the npx create-next-app command | ||
4. Add and link the TypeScript binding package to the Next.js project | ||
5. Create a simple frontend with a form to submit a string | ||
6. Import the package in the Next.js page, and setup a client | ||
7. Create submit-function to send form value to the smart contract | ||
8. Use useState to store the smart contract response and display it |