First, configure auth0
and prisma
:
auth0
andprisma
above are linked to their respective documentation on how to configure them.
Create .env
in the root directory then add the following variables:
DATABASE_URL=
SHADOW_DATABASE_URL=
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.
yarn
yarn prisma:migrate
yarn run dev
Open http://localhost:3000 with your browser to see the result.