Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 915 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 915 Bytes

Next.js Commerce

A Next.js ^13.4.19 and App Router-ready ecommerce template featuring:

  • Next.js App Router
  • Optimized for SEO using Next.js's Metadata
  • React Server Components (RSCs) and Suspense
  • Server Actions for mutations
  • Edge Runtime
  • New fetching and caching paradigms
  • Dynamic OG images
  • Styling with Tailwind CSS

Note

Important Feature

  • Pagination
  • Fetch product by query
  • Automatic light/dark mode based on system settings
  • Checkout and payments with stripe

Running locally

You will need to use the environment variables defined in .env.example to run Next.js Commerce. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

npm install

npm run dev

Note: You should not commit your .env file or it will expose secrets that will allow others to control your Mongodb database.