This guide explain how to sell a single item using via a Cast which allows your users to pay with crypto via Coinbase Commerce.
- Create a Coinbase Commerce account here
- (optional) Create a vercel account for easy deployment. Warpcast requires your Frame to be a
https://URL - An image of your item for sale (
.png,.jpg) with 1200 x 630 pixel dimensions
-
Clone this repo by running
git clone blah blah.git.... -
Connect your github account to Vercel. Reference the official Vercel guide for detailed steps
-
Replace the temporary image in the
public/folder with the image of your product -
Replace the following variables in the
utils.tsfile:NEXT_PUBLIC_URLITEM_DESCRIPTIONITEM_TITLEIMAGE_NAME-REDIRECT_URL- a URL (string) to redirect users to upon purchase completion
-
upload your Commerce API Key credentials to Vercel settings page. ** hint ** for an app deployed at
https://commerce-frame-6r9h.vercel.app/your settings page will be located athttps://vercel.com/hughescoins-projects/commerce-frame-6r9h/settings -
see the official Vercel guide on environment variables for more details
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin git@github.com:Your-Github-Username/Your-Forked-Repo.git
git push -u origin master
Done!
Built using a-frame-in-100-lines by Zizzamia
This project is licensed under the MIT License - see the LICENSE.md file for details