Skip to content

wangel13/bookchaos

Repository files navigation

BookChaos

Deploy with Vercel

code style: prettier

First steps

Up local postgres by docker-compose, setup .env and start dev server

npm i
npm run dev

Migrations

// modify schema && make migrations
npx prisma migrate save --name init --experimental
npx prisma migrate up --experimental
// generate client
npm run generate

Prisma studio

Open prisma studio interface

npm run studio

ENV

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"

About

Book writing app. Next.js, react, graphql, prisma.

Resources

License

Stars

Watchers

Forks

Releases

No releases published