Skip to content
WASDeKeysPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CardVault

A production-ready MVP for a global listings-only marketplace for trading cards and collectibles, powered by Next.js and MongoDB.

🚀 Key Features

  • Listings-Only: Direct networking between buyers and sellers, no payment processing overhead.
  • Deep Shipping Config: Powerful shipping rules (domestic, international, handling time) attached directly to the listing.
  • Local Image Uploads: Sellers can browse and upload card photos directly from their device.
  • Account Verification: Secure, mandatory email verification system to ensure marketplace integrity.
  • Cross-Platform API: Next.js Route handlers designed API-first to support future iOS/Android apps without backend modifications.

🛠️ Local Setup

1. Install Dependencies

npm install

2. Configure Environment Variables

Create a .env.local file with the following:

MONGO_URI='your_mongodb_connection_string'
JWT_SECRET='your_secure_jwt_secret'
NEXT_PUBLIC_BASE_URL='http://localhost:3000'

# SMTP Configuration (for Email Verification)
SMTP_HOST='your_smtp_host'
SMTP_PORT='587'
SMTP_USER='your_smtp_user'
SMTP_PASS='your_smtp_password'
SMTP_FROM='CardVault <noreply@cardvault.app>'

3. Seed Database (Optional)

To populate demo users and listings, run:

npx tsx src/scripts/seed.ts

4. Run Development Server

npm run dev

📱 Future Mobile App Support

The backend is completely decoupled from the UI using an API-first paradigm.

  • All endpoints in src/app/api/ output pure JSON.
  • The same infrastructure powers the web experience and can directly serve React Native or Swift mobile applications.
  • MongoDB Atlas acts as the single source of truth for all users across platforms.

🚢 Deployment

CardVault is optimized for Vercel.

  1. Push this repository to GitHub.
  2. Import the project in Vercel.
  3. Configure your Environment Variables in the dashboard.
  4. Deploy!

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages