Node version 18.x.x
and Next.js version 13.4.5
.
Clerk is the third-party authentication provider for the application
npm i @clerk/nextjs
Add Clerk secrets to .env.local
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_XXXXXXXX
CLERK_SECRET_KEY=sk_test_XXXXXX
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/journal
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/new-user
- Create an Supabase.com account
- Create
.env
file in the root of the project - Follow directions to setup Prisma with Supabase
- Install Prisma Client:
npm i @prisma/client
- Install Prisma as dev dependency:
npm i prisma --save-dev
- Initialize Prisma:
npx prisma init
- Create an openai.com account
- Select the
API
App. - Create an API Key
- Copy/Paste the key into your into
.env.local
using the variableOPENAI_API_KEY