Skip to content

About

Vendy for vendors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Vendy for vendors

The vendor web app: job requests, active jobs, prices, portfolio, earnings and chat. Vite + React 19 + React Router 7 + Tailwind CSS 4, TypeScript throughout. Built for a phone in full sun: ink ground, 16px minimum text, 52px tap targets.

Run it

Needs Node 20.19+ and the backend running (vendy_backend): the vendor API on :8003, the chat gateway on :8004, plus the workers for uploads and emails.

cp .env.example .env
npm install
npm run dev          # http://localhost:3001

/vendor/* is proxied to the vendor API, so the backend's path-scoped session cookies work without CORS. Add http://localhost:3001 to the backend's CORS_ORIGINS so the chat socket accepts this origin.

Scripts

Script What it does
npm run dev Dev server on :3001
npm run build Typecheck and build to dist/
npm run check Typecheck, lint and unit tests
npm run api:generate Regenerate src/api/schema.d.ts from the running vendor API

Layout

src/
  api/        typed client (openapi-fetch), errors, formatting, query keys
  ui/         design system: theme tokens live in src/index.css
  features/
    auth/        sign in, sign up, email code, password reset, session
    onboarding/  the six setup steps and send for review
    home/        requests home, verification states
    bookings/    request cards and request detail
    jobs/        active jobs, progress, price change, finish, cancel
    profile/     profile, prices, portfolio, area, contacts, ID
    earnings/    monthly earnings and reviews
    chat/        socket client and conversations
    notifications/
  app/        router and providers

About

Vendy for vendors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages