UI and back for claim nostr badge through QR code using NIP-05.
- User scans QR code
- This redirected to the claim page
- Fills the form with your NIP-05
- Sumbit and call the API to award the badge
- Backend award badge
- Success message
Copy .env.example
to .env
and fill the NOSTR_BADGE_EMITTER_PRIV
with the private key of Nostr Badges emitter and NOSTR_BADGE_EMITTER_PUB
with the public key.
cp .env.example .env
Use correct node version
nvm use
Install the dependencies
pnpm i
pnpm dev
Validate if the user is an admin and access the admin panel.
your_ticketing_domain/api/admin/login
- Validate the public key
{
"publicKey": <string, 32-bytes lowercase hex-encoded public key>
}
{
"status": <boolean>,
"data": {
"message": <string>
}
}
{
"status": <boolean>,
"errors": <string>
}
- Claim badge from NIP-05
- Claim badge from LaWallet
- Claim badge using LaCard
- Main page with QR to redirect to the claim page
- Claim page
- Send award event