This guide walks you through setting up the project with Next.js 14, Azure SQL, Prisma, NextAuth, Tailwind CSS, Stripe, and SendGrid. Follow these steps to get started.
Before you begin, ensure you have the following accounts and API keys:
Clone the Repository:
git clone "repo"
cd repo
Install Dependencies:
npm i .
Create a .env file in the root directory and add the following environment variables:
DATABASE_URL=""
SHADOW_DATABASE_URL=""
STRIPE_SECRET_KEY=""
STRIPE_PRICE_ID_STARTER=""
STRIPE_PRICE_ID_BUSINESS=""
STRIPE_PRICE_ID_ENTREPRENEURIAL=""
NEXT_PUBLIC_BASE_URL="" # Your development or production URL
SENDGRID_API_KEY=""
NEXTAUTH_SECRET=""
openssl rand -base64 32