This is a Next.js project bootstrapped with create-next-app.
First, run the install:
pnpm installDATABASE_URL= #Your Neon DB URLBETTER_AUTH_SECRET= #Your Better Auth Secret
BETTER_AUTH_URL=http://localhost:3000 #Your Base URL of your appGOOGLE_CLIENT_ID= #Your Google Client ID
GOOGLE_CLIENT_SECRET= #Your Google Client SecretGITHUB_CLIENT_ID= #Your Github Client ID
GITHUB_CLIENT_SECRET= #Your Github Client SecretRESEND_API_KEY= #Your Resend API KeyIt will generate a auth-schema.ts that we need to copy to the drizzle schema
npx @better-auth/cli generateWe need to copy the content of the auth-schema to the drizzle schema in the db folder.
first we need to generate the schema
npx db:generateafter that we need to push it to our Neon db
npx db:pushNow if we have done everything correct we can visit it on localhost:3000
pnpm run dev