Skip to content

Elham-EN/dabro-multi-tenant-ecommerce

Repository files navigation

Dabro

A multi-tenant e-commerce platform where creators can build storefronts, sell digital products, and get paid through Stripe Connect.

Tech Stack

  • Framework: Next.js 15 (App Router)
  • CMS: Payload CMS 3
  • Database: MongoDB
  • API: tRPC
  • Styling: Tailwind CSS
  • Payments: Stripe Connect
  • Storage: Vercel Blob
  • Language: TypeScript

Getting Started

Prerequisites

  • Node.js 18+
  • MongoDB database
  • Stripe account

Installation

  1. Clone the repository
git clone https://github.com/your-username/dabro.git
cd dabro
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env

Required variables:

DATABASE_URI=mongodb://localhost:27017/dabro
PAYLOAD_SECRET=your-secret-key
NEXT_PUBLIC_APP_URL=http://localhost:3000
STRIPE_SECRET_KEY=your-stripe-secret
  1. Run database migrations
npm run db:fresh
  1. Seed the database (optional)
npx tsx src/seed.ts
  1. Start the development server
npm run dev

Open http://localhost:3000 to view the app.

Admin panel: http://localhost:3000/admin

Scripts

Command Description
npm run dev Start development server
npm run build Build for production
npm start Start production server
npm run lint Run ESLint
npm test Run tests
npm run generate:types Generate Payload types

License

MIT

About

An online multi-tenerant e-commerce platform for creator developed using NextJS 14 with Stripe Connect and PayloadCMS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors