miljan-code / drizzle-next-auth

An example setup project for Drizzle ORM, PlanetScale and NextAuth

Home Page:https://drizzle-next-auth.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An example setup project for NextJS, Drizzle ORM, PlanetScale and NextAuth.

Usage

Clone this repo

git clone https://github.com/miljan-code/drizzle-next-auth.git

Install necessary dependencies

npm install
# or
yarn

Fill 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:push

Run the development server

npm run dev
# or
yarn dev

Drizzle Adapter by @mattddean

About

An example setup project for Drizzle ORM, PlanetScale and NextAuth

https://drizzle-next-auth.vercel.app


Languages

Language:TypeScript 82.6%Language:JavaScript 9.9%Language:CSS 7.5%