npm i
to install all the dependencies- Delete the prisma folder.
npx prisma init
to initialize prisma- Set your database connection in the .env file
- Copy the prisma folder from the repo.
- Run
npx prisma generate
to generate the prisma client - Run
npx prisma db push
to create the tables in the database - Lastly, to run the project, run
npm run dev
- To reset the entire database, run
npx prisma migrate reset
then runnpx prisma db push
to create the tables again