Skip to content

E-commerce App using NEXTJS 13 , TailwindCSS, TypeScript , Redux toolkit , Prisma, MongoDB.

Notifications You must be signed in to change notification settings

NiharMondal/nextjs-ecommerce

Repository files navigation

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.