This is a Next.js project bootstrapped with create-next-app
.
First, install dependencies:
yarn
If you have error: "node" is incompatible... Then add flag:
--ignore-engines
. E.g:yarn add --ignore-engines PACKAGE_NAME
Then, generate Prisma client
npx prisma generate
Go to .env
file to edit connection string
NOTE: Ensure you have enable TCP/IP protocol (Guide), or you can use other connection string
DATABASE_URL="sqlserver://localhost:1433;database=DATABASE;username=USER;password=PASSWORD;trustServerCertificate=true;"
Run the development server:
yarn dev