Skip to content

Latest commit

Β 

History

History
92 lines (76 loc) Β· 2.36 KB

File metadata and controls

92 lines (76 loc) Β· 2.36 KB

🎡 Coop Credits

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.

Screenshot 2025-05-07 at 10 34 01β€―AM

πŸš€ Overview

  • 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)

πŸ—‚οΈ Project Structure

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

πŸ› οΈ Getting Started

  1. Clone the repo:
    git clone https://github.com/Coop-Records/Credits-Web-Prototype.git
    cd Credits-Web-Prototype
  2. Install dependencies:
    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Set up environment variables:
    • Copy the example file:
      cp .env.example .env.local
    • Edit .env.local and fill in the required keys for Privy and Crossmint.
  4. Run the development server:
    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  5. Open http://localhost:3000 in your browser.

🌐 Live Demo

Check out the live app: https://coop-credits.vercel.app/


πŸ“– Learn More


πŸ“ License

This project is licensed under the MIT License by Coop Records.