Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 2.34 KB

README.md

File metadata and controls

43 lines (30 loc) · 2.34 KB

NextMaster

A highly performant replica of McMaster-Carr using Next.js and AI generated content by @ethanniser, @RhysSullivan and @armans-code

Design notes

Check out the detailed twitter thread

AI

  • Used OpenAI's gpt-3.5-turbo to generate product categories, names and descriptions
  • GetImg.ai was used to generate product images via the stable-diffusion-v1-5 model

Deployment

  • Make sure the Vercel project is connected to a Vercel Postgres (Neon) database and Vercel Blob Storage
  • Run pnpm db:push to apply schema to your db

Local dev

  • Run vc env pull to get a .env.local file with your db credentials.
  • Run pnpm install && pnpm dev to start developing
  • For DB migrations with drizzle-kit:
    • Make sure ?sslmode=required is added to the POSTGRES_URL env for dev
    • Run pnpm db:push to apply schema to your db

Performance

PageSpeed report

image