Up local postgres by docker-compose
, setup .env
and start dev
server
npm i
npm run dev
// modify schema && make migrations
npx prisma migrate save --name init --experimental
npx prisma migrate up --experimental
// generate client
npm run generate
Open prisma studio interface
npm run studio
Use .env.local
on production or .env.development
on dev. Read more
TOKEN_SECRET="this-is-a-secret-value-with-at-least-32-characters"
DATABASE_URL="postgresql://postgres:example@localhost:5432/prisma?schema=public"