This is a Next.js project bootstrapped with create-next-app@latest.
First, get a postgres database url and paste it in place of
DATABASE_URL="postgresql://user:password@host:port/database" Then get google client id and secret from (Google Cloud Console)
GOOGLE_CLIENT_ID="your_google_client_id"
GOOGLE_CLIENT_SECRET="your_google_client_secret" Then get the cloudinary bucket cloud_name, api_key, api_secret from (Cloudinary)
CLOUDINARY_CLOUD_NAME="your_cloudinary_name"
CLOUDINARY_API_KEY="your_cloudinary_api_key"
CLOUDINARY_API_SECRET="your_cloudinary_api_secret" Create a next_auth secret
NEXTAUTH_SECRET="your_nextauth_secret" Default redirect uri
YOUTUBE_REDIRECT_URI="http://localhost:3000" Migrate your database
pnpx prisma migrate dev --name "add-preffered-name"Generate prisma client
pnpx prisma generateRun the development server:
pnpm run dev
or
pnpm devOpen http://localhost:3000 with your browser to see the result.