Next.js Discord

Discord Forum

Prisma Setup Help

Unanswered
Beveren posted this in #help-forum
Open in Discord
BeverenOP
Help please

22 Replies

hi bro
did you run npx prisma init
this is how the files need to look
BeverenOP
oh
when you run npx prisma init it will set the files up like that for you. just don't move them. it will also add the .env file and put the POSTGRES_PRISMA_URL env variable in there for u to add
BeverenOP
so it should be outside of src
yes
BeverenOP
ij waut
did u run the command tho, u need to do that
BeverenOP
no i didnt
wait
yeah u need to do that every time you install prisma
you do npm install prisma then npx prisma init
you only need to do it once when you create a new project
@archer you do `npm install prisma` then `npx prisma init`
BeverenOP
after this, whats next
push?
@Beveren push?
after you run those commands you need to add a database url in the .env file, then you run npx prisma db push
if you don't have a database url you can use sqlite
if you need help w that @ me 🙏
@archer if you need help w that @ me 🙏
BeverenOP
Sure, thank you😊
BeverenOP
@archer how do i clear the space storage of vercel postgres