Files
marketplace/CLAUDE.md
delta-lynx-89e8 d09c998d51 QA fixes: real listing creation, profile save, favorites, missing pages
- SellItemPage: real file upload + API listing creation + activate
- CreateProfilePage: save profile via PUT /users/profile
- ProductDetailPage: wire edit/delete/message buttons, show edit for owner
- ListingCard: persist favorites via API, show real images
- Footer: connect newsletter subscribe to API
- Router: add /dashboard/listings and /dashboard/saved routes
- Backend: add GET /listings/favorites endpoint
- New pages: MyListingsPage, SavedItemsPage
- Fix unused imports causing build failures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 12:30:03 -08:00

1.5 KiB

Marketplace Project Notes

Database: PostgreSQL via Docker

Container name: marketplace-postgres Image: postgres:17-alpine Volume: marketplace-pgdata (persistent local data)

Start database

docker start marketplace-postgres

Stop database (frees memory)

docker stop marketplace-postgres

Check status

docker ps -f name=marketplace-postgres

Connection string

postgresql://marketplace:marketplace_dev@localhost:5432/marketplace

If container was deleted, recreate:

docker run -d \
  --name marketplace-postgres \
  -e POSTGRES_USER=marketplace \
  -e POSTGRES_PASSWORD=marketplace_dev \
  -e POSTGRES_DB=marketplace \
  -p 5432:5432 \
  -v marketplace-pgdata:/var/lib/postgresql/data \
  --restart unless-stopped \
  postgres:17-alpine

Data persists in the marketplace-pgdata Docker volume even if the container is removed.

Running the app

  1. Start database: docker start marketplace-postgres
  2. Server: npm run dev:server (port 3000)
  3. Client: npm run dev:client (port 5173)
  4. Or both: npm run dev

Seed data

cd server && npx tsx prisma/seed.ts

Test users (all password: password123):

Key env vars (server/.env)

  • DATABASE_URL — PostgreSQL connection
  • GOOGLE_MAPS_API_KEY — Location autocomplete
  • STRIPE_SECRET_KEY / STRIPE_PUBLISHABLE_KEY — Payments (optional for dev)