/cartfusion-nextjs

Next.js React Ecommerce

Primary LanguageTypeScript

CartFusion Next.js

ThreeD Commerce: Next.js React Shopping Cart + Ecommerce Basics

Technologies 🔧

  • Next.js 12+ (React 18+)
  • TypeScript 4.9+
  • Prisma
  • NextAuth
  • Stripe
  • Tailwind
  • React Query
  • Sentry
  • Yup

Installation 💾

git clone https://github.com/marty-mcgee/cartfusion-nextjs.git

Set your .env variables:

POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
DATABASE_URL="postgresql://<POSTGRES_USER>:<POSTGRES_PASSWORD>@<POSTGRES_HOST>:<POSTGRES_PORT>/<POSTGRES_DB>?schema=public&sslmode=prefer"
GITHUB_SECRET=
GITHUB_ID=
SECRET=
NEXTAUTH_URL=
NEXTAUTH_CALLBACK_URL=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
NEXT_PUBLIC_STRIPE_SUCCESS_REDIRECT_URL=
NEXT_PUBLIC_STRIPE_ERROR_REDIRECT_URL

Install deps:

npm install

Generate Prisma Client:

npx prisma generate

Run docker-compose:

docker-compose up -d

Run Next dev server:

npm run dev

Code Example/Issues 🔍

Please let me know in the issues section or directly to mcgee.marty@gmail.com

Contributing

This is an open source project, and contributions of any kind are welcome and appreciated. Open issues, bugs, and feature requests are all listed on the issues tab and labeled accordingly. Feel free to open bug tickets and make feature requests.