https://github.com/miljan-code/drizzle-next-auth
An example setup project for Drizzle ORM, PlanetScale and NextAuth
https://github.com/miljan-code/drizzle-next-auth
Last synced: about 1 year ago
JSON representation
An example setup project for Drizzle ORM, PlanetScale and NextAuth
- Host: GitHub
- URL: https://github.com/miljan-code/drizzle-next-auth
- Owner: miljan-code
- Created: 2023-06-16T19:25:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T19:42:22.000Z (over 1 year ago)
- Last Synced: 2025-05-12T17:23:28.241Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 201 KB
- Stars: 54
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
An example setup project for NextJS, Drizzle ORM, PlanetScale and NextAuth.
## Usage
Clone this repo
```bash
git clone https://github.com/miljan-code/drizzle-next-auth.git
```
Install necessary dependencies
```bash
npm install
# or
yarn
```
Fill up .env
```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
```bash
npm run db:push
```
Run the development server
```bash
npm run dev
# or
yarn dev
```
Drizzle Adapter by [@mattddean](https://github.com/mattddean)