Install postgress and create a user and a database. Put the information in the env variable
-
create a file ".env" at the root.
-
its content looks like this:
DATABASE_URL="postgresql://user:password@localhost:5432/DBname" ROOT_URL="https://localhost:3000" COOKIE_KEYS=["currentCookieKey", "oldCookieKey"] BASE_URL="https://localhost:3000" EMAIL_USER="" EMAIL_PASSWORD="" EMAIL_HOST="" EMAIL_SERVICE=""
-
npm run prisma-generate
-
npx prisma migrate reset --preview-feature
to generate tables
npx prisma generate
after updating schema.prismanpx prisma migrate dev --preview-feature
npx prisma migrate reset --preview-feature
npx prisma migrate deploy
You can skip this step and click through the risk-agreement screen every time you refresh the page
[Tutorial]([https://link](https://betterprogramming.pub/how-to-create-trusted-ssl-certificates-for-your-local-development-13fd5aad29c6))