This is a quick example of how you might use the Buddy Drops SDK to implement a raffle mint on Solana.
To close the rope you will want to run this command:
git clone [email protected]:buddy-link/buddy-drops.git
You will want to install the dependencies with
bun install
or yarn
or npm install
You will want to run this command to see a preview on localhost:3000
bun run dev
There are only 2 important files to look at:
/src/app/layout.jsx
and
/src/app/(home)/Home.jsx
With these two files you'll be able to see the example code and how to implement it.
For now it is running with mock local enabled, but we will soon add the connections to the smart-contract as well as the backend with api-keys.