A production-ready MVP for a global listings-only marketplace for trading cards and collectibles, powered by Next.js and MongoDB.
- 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.
npm installCreate 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>'To populate demo users and listings, run:
npx tsx src/scripts/seed.tsnpm run devThe 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.
CardVault is optimized for Vercel.
- Push this repository to GitHub.
- Import the project in Vercel.
- Configure your Environment Variables in the dashboard.
- Deploy!