nodejs-setup
v1.1.18
Published
nodejs basic setup
Downloads
7
Readme
To run locally
npm install
npm run develop
To run Prisma
rename .env.sample to .env give the db credentials
Below command is for loading the model schema in prismaClient
npx prisma generate
- to visualize the database
npx prisma studio
- to deploy migration
npx prisma migrate dev --name migration_name
npx prisma migrate dev --create-only --name "ondc_redirection_link_url"
- to reset the database
npx prisma migrate reset
- to deploy any pending migrations
npx prisma migrate deploy
- to resolve schema issue
npx prisma format