Prisma Client and Migrate is used as Database API
Install dependencies
$ npm install
# setup and start PostgreSQL
You need to configure your environment variables now. Copy .env.example
and rename as .env
. Now provide values for the keys mentioned there.
# apply migrations
$ prisma migrate up --experimental
# or
$ npx prisma migrate up --experimental
# create prisma client
$ prisma generate
# or
$ npx prisma generate
# user .env file at prisma/ folder to configure database
# apply migrations
$ prisma migrate up --experimental
# or
$ npx prisma migrate up --experimental
# create migration
$ prisma migrate save --experimental
# or
$ npx prisma migrate save --experimental
# create prisma client to use new updates in modal
$ prisma generate
# or
$ npx prisma generate