https://github.com/fajarwz/blog-nextjs-auth
Simple example of Email-Password Authentication and Email Verification in Next.js with PostgreSQL and Prisma
https://github.com/fajarwz/blog-nextjs-auth
example-project nextjs nodemailer postgresql prisma react serveractions typescript zod
Last synced: 6 months ago
JSON representation
Simple example of Email-Password Authentication and Email Verification in Next.js with PostgreSQL and Prisma
- Host: GitHub
- URL: https://github.com/fajarwz/blog-nextjs-auth
- Owner: fajarwz
- Created: 2024-02-10T15:20:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-10T15:21:03.000Z (over 1 year ago)
- Last Synced: 2025-03-27T12:06:13.684Z (7 months ago)
- Topics: example-project, nextjs, nodemailer, postgresql, prisma, react, serveractions, typescript, zod
- Language: TypeScript
- Homepage: https://fajarwz.com/blog/email-authentication-and-verification-in-nextjs-14-with-next-auth-and-prisma/
- Size: 67.4 KB
- Stars: 22
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Email Authentication and Verification in Next.js 14 With Next Auth and Prisma
This is an implementation of Email-Password Authentication and Verification with Next.js 14. A blog about this can be found here: [Email Authentication and Verification in Next.js 14 With Next Auth and Prisma | Fajarwz](https://fajarwz.com/blog/email-authentication-and-verification-in-nextjs-14-with-next-auth-and-prisma/).## Configuration
### Create .env file from .env.example
```
cp .env.example .env
```### Database Integration
1. Open .env file
2. Create a database and connect it with Next.js by adjusting the `DATABASE_URL` with your own configuration### Migrate the Database Migration
```
npx prisma db push
```## Installation
### Node Packages
```
npm install
```## Run App
```
npm run dev
```