# Drivechain

Marketplace for vehicle diagnostic data sets, with a price per VIN shown on the vehicle page, SMS sign-in and Stripe and PayPal checkout. The hard parts were one order record for two payment providers and importing a large vendor spreadsheet from the browser.

- **Facts:** 2024, Built for a client, Completed, role: Sole developer
- **What I did:** I built the marketplace on my own, end to end: the catalogue, sign-in, cart, both checkouts and the data import.
- **Scope:** fullstack
- **Domain:** e-commerce
- **Stack:** Next.js, React, TypeScript, Tailwind CSS, Prisma, PostgreSQL, Supabase, Stripe, TanStack Query, Supabase Auth, T3 Env, nuqs, Radix UI, React Hook Form, PayPal, Chart.js, next-safe-action, Zod, shadcn/ui, date-fns, ESLint, Prettier, pnpm, sharp, Twilio
- **Page:** https://sergey-petrinich.vercel.app/work/drivechain

Capabilities:

- Home page with make, model, year and powertrain filters kept in the URL, and infinite scroll
- Vehicle page with coverage counts, price per VIN, quantity and a bar chart of every function with its confidence level
- A sample file of a vehicle's functions, built in the browser and shown in a dialog before download
- Sign-up and sign-in with a phone number and a one-time code through Supabase Auth, and a profile page
- Cart with quantity edit, Stripe Checkout with a signed webhook, and PayPal orders
- Order history that reads one pair of tables for both payment providers
- Wishlists to create, rename and delete, with a page per wishlist
- Import of the vendor .xlsx report in the browser, written to the database in 300-row chunks with a progress percentage
- 20+ Server Actions behind 7 pages

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
