27
loading...
This website collects cookies to deliver better user experience
yarn init -y
yarn add -d typescript @types/node ts-node prisma
npx prisma init --datasource-provider sqlite
schema.prisma
inside of the folder prisma
.SQLite
. .env
in the root of the project where inside we can find this variable.--datasource-provider
in the script. By default, if you don't pass this parameter the script uses PostgreSQL as database service, so if you need to use a different service you need to specify it using the --datasource-provider
parameter.