1.1.18 • Published 11 months ago

nodejs-setup v1.1.18

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

To run locally

npm install
npm run develop

To run Prisma

  1. rename .env.sample to .env give the db credentials

  2. Below command is for loading the model schema in prismaClient

npx prisma generate
  1. to visualize the database
npx prisma studio
  1. to deploy migration
npx prisma migrate dev --name migration_name
npx prisma migrate dev --create-only --name "ondc_redirection_link_url"
  1. to reset the database
npx prisma migrate reset
  1. to deploy any pending migrations
npx prisma migrate deploy
  1. to resolve schema issue
npx prisma format