This app lets you top up credits to purchase music from Coop Recs, with each song costing 1 credit. Built with Next.js, ShadCN UI, Privy for authentication, and Crossmint for payments.
- Purpose: Quickly top up your account with credits to enjoy your favorite songs.
- Tech Stack: Next.js, ShadCN UI, Privy, Crossmint
- How it works:
- Log in securely with Privy
- Purchase credits with credit card, apple pay or google pay using Crossmint
- Use credits to buy songs (1 credit = 1 song)
credits-web-prototype/
βββ app/
β βββ layout.tsx
β βββ page.tsx
βββ components/
β βββ crossmint-modal.tsx
β βββ credits-drawer.tsx
β βββ credit-options.tsx
β βββ skeleton-crossmint.tsx
β βββ plus-icon.tsx
β βββ ui/
β βββ button.tsx
β βββ sheet.tsx
βββ providers/
β βββ CrossmintProvider.tsx
β βββ PrivyProvider.tsx
βββ public/
β βββ plus-icon.png
βββ hooks/
β βββ useEthPrice.ts
βββ README.md
βββ package.json
βββ pnpm-lock.yaml
- Clone the repo:
git clone https://github.com/Coop-Records/Credits-Web-Prototype.git cd Credits-Web-Prototype - Install dependencies:
npm install # or yarn install # or pnpm install
- Set up environment variables:
- Copy the example file:
cp .env.example .env.local
- Edit
.env.localand fill in the required keys for Privy and Crossmint.
- Copy the example file:
- Run the development server:
npm run dev # or yarn dev # or pnpm dev
- Open http://localhost:3000 in your browser.
Check out the live app: https://coop-credits.vercel.app/
This project is licensed under the MIT License by Coop Records.