https://github.com/thirdweb-example/phygital-experience
https://github.com/thirdweb-example/phygital-experience
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thirdweb-example/phygital-experience
- Owner: thirdweb-example
- License: apache-2.0
- Created: 2023-10-31T18:05:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T01:46:42.000Z (over 1 year ago)
- Last Synced: 2025-07-19T16:02:27.709Z (7 months ago)
- Language: JavaScript
- Homepage: https://engine-phygital.vercel.app
- Size: 473 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Phygital experience with thirdweb Engine
This example demonstrates using thirdweb Engine to let users claim an NFT by scanning a QR code.
1. Buyers scans a QR code they received with their physical product. For testing, you can use the QRs on the [QRs page](https://engine-phygital.vercel.app/qrs).
2. Sign in with google/email on our website using embedded wallet.
3. Click on the claim button which will call our backend API to mint the NFT.
The buyer receives the NFT without requiring wallet signatures or gas funds.
## Instructions
1. Create a `.env.local` file from the template:
```bash
cp .env.example .env.local
```
2. Provide details of your project.
```bash
DATABASE_URL=
NEXT_PUBLIC_TEMPLATE_CLIENT_ID=
ENGINE_URL=
THIRDWEB_ACCESS_TOKEN=
BACKEND_WALLET_ADDRESS=
NEXT_PUBLIC_NFT_CONTRACT_ADDRESS=
```
3. Start the server with favorite package manager.
```bash
bun dev
```
## Get in touch
- Support: [Join the Discord](https://discord.gg/thirdweb)
- Twitter: [@thirdweb](https://twitter.com/thirdweb)