Features:
Node version 18.x.x
git clone https://github.com/Harshil-sitapara/next13-ai-saas.git
npm install
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard
TOGETHER_API_KEY=
DATABASE_URL=
STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
NEXT_PUBLIC_APP_URL="http://localhost:3000"
Add postgresql Database (I used Supabase)
npx prisma db push
npm run dev
Running commands with npm npm run [command]
command | description |
---|---|
dev |
Starts a development instance of the app |
lint |
Runs ESLint to check for code issues |
postinstall |
Generates Prisma client after dependencies install |
studio |
Opens Prisma Studio for database management |
stripe:listen |
Forwards Stripe events to local API webhook |