Skip to content

mehedi-etlimited/NextFaster

 
 

Repository files navigation

NextFaster

A highly performant e-commerce template 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-4o-mini with their batch API and the Vercel AI SDK 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
  • The data/data.zip includes a ~300 MB data.sql file with the full schema and 1,000,000+ products

Performance

PageSpeed Report

SCR-20241027-dmsb

About

A highly performant e-commerce template using Next.js

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 97.0%
  • CSS 1.7%
  • JavaScript 1.3%