Skip to content

ElliotFriend/ye-olde-guestbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ye Olde Guestbook

A passkey powered dapp that acts like a smart contract version of the internet guestbooks from the olden days!

Table of Contents

Give it a Spin

guestbook screenshot

You can get to a Testnet version of the dapp here:

Passkeys

We utilize Tyler's amazing passkey-kit to interact with users and authenticate with their passkeys. This makes it possible for users to get on-chain without any of the usual obstacles that can stand in their way.

Seriously. You have GOT to start thinking about passkeys.

Anatomy of the Repository

Smart Contract

The Stellar smart contract that powers this dapp is located in the /contracts/ye_olde_guestbook directory. It's simple enough that you can probably get a pretty solid understanding, just by browsing through the source code.

This smart contract is also used to generate "bindings" that can be imported and used in the frontend code. The bindings are located in the /packages/ye_olde_guestbook directory. They're auto-generated each time the initialize.js script is run (you can use npm run init for this), so the generated bindings are always going to be up-to-date with the deployed smart contract.

Frontend

The frontend files are found in the /src directory. It's a SvelteKit app. There are server-only API routes located in the /src/routes/api directory. Components and utilities are included in the /src/lib directory.

More Info