Delete the prisma/migrations folder when you create your own database.
Running
npm run migrate
will throw an error isprisma/migrations
folder andMigrations
table in database do not match
Inside
prisma/.env
file, setDATABASE_URL="<postgres://user:[email protected]>"
npm run migrate
Typescript package is necessary to build the project
Install type script
npm install -g typescript
Set DATABASE_URL environment variable
npm install
npx prisma generate
tsc
npm start