This is a Nextjs app with prisma and Notus JS, setup to work with a Supabase backend. Material-UI is also included, but is mainly used by the calendar library dx-react-scheduler and for some skeleton components.
First you must install all dependencies with yarn install
and additionally execute yarn add global dotenv
. Dotenv is necessary to tell prisma to use the DATABASE_URL
variable from your .env.local
file. If you do not publish this, you can skip the installation of dotenv
and set the DATABASE_URL
in the .env
.
Setup your supabase project and add the variables DATABASE_URL
, NEXT_PUBLIC_SUPABASE_URL
and NEXT_PUBLIC_SUPABASE_ANON_KEY
to .env.local
. A guide by supabase can be found here.
To change the db schema, edit the schema.prisma file and then run yarn migrate
.