Skip to content

AndreiCalazans/tailwind-ai-generator

Repository files navigation

DevelopmentJ

Running Next.js

npm run dev

Starting the PlanetScale Database server Also run in separate window

pscale connect gpt-generated-snippets main --port 3309

How to make changes to the Database schema?

  1. Change to a new branch
pscale branch create gpt-generated-snippets <branch name>
  1. Make local changes to ./prisma/schema.prisma

  2. Push changes

npx prisma db push
  1. Request deploy (merge changes)
pscale deploy-request create gpt-generated-snippets initial-setup
  1. Delete dev branch once merged
pscale branch delete gpt-generated-snippets initial-setup

Note you must open the Dashboard via the URL provided to queue changes