Getting Started
Install dependencies, configure environment, apply migrations, and run the dev server.
Getting Started
1. Prerequisites
Ensure you have installed:
- Node.js 20+
- Yarn (v1 or v2+)
- Git
- A Supabase project (providing Postgres DB, Auth, etc.)
2. Clone the Repository
git clone https://github.com/YOUR_USERNAME/marketplace-app.git
cd marketplace-app
3. Install Dependencies
yarn install
4. Configure Environment Variables
cp .env.example .env.local
Then update .env.local
accordingly:
# .env.local
DATABASE_URL="postgres://user:pass@POOLER.supabase.co:6543/postgres?sslmode=require&pgbouncer=true"
DIRECT_URL="postgres://user:pass@DB.supabase.co:5432/postgres"
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
STRIPE_SECRET_KEY=sk_...
STRIPE_WEBHOOK_SECRET=whsec_...
5. Apply Database Migrations
yarn prisma db push
yarn prisma db seed # optional
6. Start the Development Server
yarn dev
7. Preview a Production Build
yarn build
yarn start
Quick Setup Recap
git clone … && cd marketplace-app
yarn install
cp .env.example .env.local # fill in credentials
yarn prisma db push
yarn dev