This is a Next.js project bootstrapped with create-next-app
.
- Install dependencies:
npm run install
# or
yarn
# or
pnpm install
- 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)
- 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.
Technologies used:
- Next.js
- Prisma
- Stripe
- TailwindCSS
- Next-Auth