{"id":20974218,"url":"https://github.com/thirdweb-example/loyalty-card","last_synced_at":"2025-05-14T12:31:08.292Z","repository":{"id":192570032,"uuid":"687017793","full_name":"thirdweb-example/loyalty-card","owner":"thirdweb-example","description":null,"archived":true,"fork":false,"pushed_at":"2024-04-12T00:31:48.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T08:45:09.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://loyalty-card.thirdweb-example.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirdweb-example.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-04T12:32:00.000Z","updated_at":"2024-05-30T19:30:37.000Z","dependencies_parsed_at":"2024-04-18T20:33:31.858Z","dependency_job_id":null,"html_url":"https://github.com/thirdweb-example/loyalty-card","commit_stats":null,"previous_names":["thirdweb-example/loyalty-card"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Floyalty-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Floyalty-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Floyalty-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Floyalty-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirdweb-example","download_url":"https://codeload.github.com/thirdweb-example/loyalty-card/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254142245,"owners_count":22021488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T04:27:15.669Z","updated_at":"2025-05-14T12:31:07.953Z","avatar_url":"https://github.com/thirdweb-example.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!Important]  \n\u003e This repository is referencing the `mumbai` chain.\n\u003e \n\u003e `Mumbai` [is deprecated since 08/04/2024](https://blog.thirdweb.com/deprecation-of-mumbai-testnet/), meaning the code in this repository will no longer work out of the box.\n\u003e\n\u003e You can still use this repository, however you will have to switch any references to `mumbai` to another chain.\n\n# Loyalty Card Template\n\nThis project demonstrates how you can create loyalty cards for your customers using NFTs.\n\n## Installation\n\nInstall the template with [thirdweb create](https://portal.thirdweb.com/cli/create)\n\n```bash\nnpx thirdweb create --template loyalty-card\n```\n\n## Set up\n\n- Deploy or import an already deployed Loyalty card contract on thirdweb dashboard.\n- Update the contract address in the [consts.ts](./consts.ts) file to use your contract address.\n\n### Environment Variables\n\nTo run this project, you will need to add the following environment variables to your .env file:\n\n```bash\nNEXT_PUBLIC_TEMPLATE_CLIENT_ID=\nTW_SECRET_KEY=\nWALLET_PRIVATE_KEY=\n```\n\n- Generate your `TW_SECRET_KEY` and `NEXT_PUBLIC_TEMPLATE_CLIENT_ID` via thirdweb's [dashboard](https://thirdweb.com/create-api-key).\n- For `WALLET_PRIVATE_KEY` export your wallet private key from your wallet.\n\n### Run Locally\n\nInstall dependencies:\n\n```bash\nyarn\n```\n\nStart the server:\n\n```bash\nyarn start\n```\n\n## Additional Resources\n\n- [Documentation](https://portal.thirdweb.com)\n- [Templates](https://thirdweb.com/templates)\n- [Video Tutorials](https://youtube.com/thirdweb_)\n- [Blog](https://blog.thirdweb.com)\n\n## Contributing\n\nContributions and [feedback](https://feedback.thirdweb.com) are always welcome!\n\nPlease visit our [open source page](https://thirdweb.com/open-source) for more information.\n\n## Need help?\n\nFor help, join the [discord](https://discord.gg/thirdweb) or visit our [support page](https://support.thirdweb.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Floyalty-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirdweb-example%2Floyalty-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Floyalty-card/lists"}