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
-
Clone the repository
git clone https://github.com/your-username/dabro.git cd dabro -
Install dependencies
npm install -
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
-
Run database migrations
npm run db:fresh -
Seed the database (optional)
npx tsx src/seed.ts -
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