Skip to content

munanadi/gatelinks

Repository files navigation

Gatelinks

A Solana-native Gumorad alternative. Check it out here

  1. Next.js 13
  2. Candypay for checkouts
  3. Shadow Drive for storage
  4. Vercel Postgres
  5. shadcn/ui for UI components

Demo

gatelinks_demo.mp4

TODOs:

  • PDAs to store Products instead of Vercel Postgres.
  • Helius to index them later.

Dev setup

  1. Get keys from Candypay and add in .env
  2. Get a RPC from Helius and add in .env
  3. Shadow drive works only on Mainnet for now. Get SHDW tokens from Jupiter
  4. Setup Vercel postgres storage from dashboard of vercel
  5. 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");

About

Crypto Native gumroad alternative

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published