Skip to content

tanpatrick/nextjs-prisma

Repository files navigation

Getting Started

First, configure auth0 and prisma:

auth0 and prisma above are linked to their respective documentation on how to configure them.

prisma

Create .env in the root directory then add the following variables:

DATABASE_URL=
SHADOW_DATABASE_URL=

auth0

Create .env.local in the root directory then add the following variables:

AUTH0_SECRET=
AUTH0_BASE_URL=http://localhost:3000
AUTH0_ISSUER_BASE_URL=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_POST_LOGOUT_REDIRECT=http://localhost:3000/logout

Once done, proceed installing the application's packages and initialise database schema using prisma.

Install packages

yarn

Initialise database schema using prisma

yarn prisma:migrate

Run application

yarn run dev

Open http://localhost:3000 with your browser to see the result.

About

Demo web application integrating nextjs, prisma and auth0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published