Skip to content

geovla93/merlyn-commerce

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

  1. Install dependencies:
npm run install
# or
yarn
# or
pnpm install
  1. Create a .env.local file at the root of the project and set the following env variables:
  • STRIPE_SECRET_KEY
  • STRIPE_WEBHOOK_SECRET
  • NEXT_PUBLIC_STRIPE_PUBLIC_KEY
  • GOOGLE_CLIENT_SECRET
  • GOOGLE_CLIENT_ID
  • DATABASE_URL
  • HOST (http://localhost:3000)
  • NEXTAUTH_SECRET (openssl rand -base64 32)
  • NEXTAUTH_URL (http://localhost:3000)
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You will have to sign up for Stripe and setup webhooks first in order for it to work.

Learn More

Technologies used:

  • Next.js
  • Prisma
  • Stripe
  • TailwindCSS
  • Next-Auth