An example setup project for NextJS, Drizzle ORM, PlanetScale and NextAuth.
Clone this repo
git clone https://github.com/miljan-code/drizzle-next-auth.gitInstall necessary dependencies
npm install
# or
yarnFill up .env
DATABASE_URL='mysql://username:passowrd@0.0.0.0/db' #PlanetScale
NEXTAUTH_URL='http://localhost:3000'
NEXTAUTH_SECRET=
GITHUB_ID=
GITHUB_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=Run db migrations
npm run db:pushRun the development server
npm run dev
# or
yarn devDrizzle Adapter by @mattddean