Building an App with Thirdweb
Create and deploy your own Web3 app effortlessly with Thirdweb and Celo. 🚀
Objectives​
By the end of this tutorial, you will:
- Have a set of NFT Drops.
- Build an NFT gallery with
ThirdwebandCelo.
Prerequisites​
- Node (v20 or higher)
- A wallet with some test tokens (more on this later)
Fund Your Wallet​
- Ensure you have sufficient funds to cover the transaction fees.
- Visit the Alfajores Faucet to claim test tokens using your wallet address. Remember to claim only what you need.
Create a Contract on Thirdweb​
- Visit Thirdweb and log in or create a new account.
- Navigate to
Contractsand clickDeploy Contract. - Since multiple smart contracts have already been audited, we don’t need to write them from scratch.
- Select
NFT Dropand clickDeploy. - Configure your token by setting its Name (mandatory), Symbol, and optionally adding an Image and Description.
- In the Deploy Options section, choose
Celo Alfajoresas the Chain (if not selected by default). - Click
Deploy Nowto finalize the process. - After deployment, you’ll be redirected to the dashboard to upload your NFTs.
- Provide a name, upload an image, add a description, and define traits for your NFT.
- Lazy Mint your NFT.
- Repeat steps 9 and 10 a few times—we need at least 3 NFTs.
- Copy your
contract addressfrom the NFT dashboard.
Get a Thirdweb Client ID​
- Open the Thirdweb Dashboard and click
Add Newin the Projects section. - Select
Projectfrom the dropdown menu. - Enter a project name and add
localhost:5173underAllowed Domains. ClickCreate. - A
Client IDandSecret IDwill be generated. Copy both to a secure location—we’ll only need theClient ID.
Clone the Thirdweb Celo NFT Repository​
-
Clone the repository:
git clone https://github.com/atejada/thirdweb-celo-nft
cd celo-token-agent -
Install dependencies:
npm install -
Create a .env file with the following content:
VITE_CLIENTID=your_thirdweb_client_id
VITE_ADDRESS=your_nft_contract_address -
Run the project:
npm run dev
Once the project is running, you’ll see the first NFT displayed along with a dropdown menu. You can select any other NFT from your collection to view its image, name, and description.
Join Build with Celo - Proof of Ship​
- Create your application using an audited contract on Thirdweb.
- Check the Github repo Proof-of-Ship.
- Sign up to join Build with Celo - Proof of Ship.
- You can win up to
5k cUSD. - Build with
Celo.