A Solana-native Gumorad alternative. Check it out here
- Next.js 13
- Candypay for checkouts
- Shadow Drive for storage
- Vercel Postgres
- shadcn/ui for UI components
gatelinks_demo.mp4
TODOs:
- PDAs to store Products instead of Vercel Postgres.
- Helius to index them later.
- Get keys from Candypay and add in .env
- Get a RPC from Helius and add in .env
- Shadow drive works only on Mainnet for now. Get SHDW tokens from Jupiter
- Setup Vercel postgres storage from dashboard of vercel
- Run
yarn run migrations:generate
will get you the below SQL commands. Run this in the console of vercel storage dashborad to setup DB
CREATE TABLE IF NOT EXISTS "products" (
"hash" varchar(256) PRIMARY KEY NOT NULL,
"link" varchar(256) NOT NULL,
"name" varchar(256) NOT NULL,
"description" varchar(256) NOT NULL,
"price" numeric DEFAULT '0' NOT NULL,
"creator_wallet" varchar(256) NOT NULL,
"created_date" date DEFAULT CURRENT_DATE NOT NULL
);
CREATE TABLE IF NOT EXISTS "users" (
"wallet" varchar(256) NOT NULL,
"product_hash" varchar(256) NOT NULL,
"date" date DEFAULT CURRENT_DATE NOT NULL,
"sold" boolean NOT NULL
);
ALTER TABLE "users" ADD CONSTRAINT "users_product_hash_wallet" PRIMARY KEY("product_hash","wallet");