- Create a new Postgres database, and either provision it with the raw queries provided on the Next-Auth site, or with Prisma.
- Copy
.env.example
files within theapi
andapp
services, and fill them out with both the database URL and mailer settings (for magic links). - Run the API service with its the
start
script. - Run the APP service with its the
start
script. - Visit http://localhost:4000 and sign in with an email address.
- Uncomment line 19 in
services/app/src/pages/api/auth/[...nextauth].ts
. - Visit http://localhost:4000 again. It should immediately redirect you to the login page and throw an error in the console.
forked from j0hnm4r5/example-prisma-next-auth-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
millsp/example-prisma-next-auth-monorepo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 86.1%
- Shell 7.5%
- JavaScript 6.4%