Skip to content

millsp/example-prisma-next-auth-monorepo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Prisma / Next / Next-Auth Monorepo with API and APP services

Quickstart

  1. Create a new Postgres database, and either provision it with the raw queries provided on the Next-Auth site, or with Prisma.
  2. Copy .env.example files within the api and app services, and fill them out with both the database URL and mailer settings (for magic links).
  3. Run the API service with its the start script.
  4. Run the APP service with its the start script.
  5. Visit http://localhost:4000 and sign in with an email address.
  6. Uncomment line 19 in services/app/src/pages/api/auth/[...nextauth].ts.
  7. Visit http://localhost:4000 again. It should immediately redirect you to the login page and throw an error in the console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 86.1%
  • Shell 7.5%
  • JavaScript 6.4%