Pre-req: ensure Node v22 is installed.
First, start the DB:
docker compose up -dSecond, if wanting to apply migrations:
prisma migrate devThird, run the development server/client:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devIf you want to perform the initial migration:
- Delete contents of
/migrations(optional) - run
prisma migrate dev --name init
Open http://localhost:3000 in your browser to see the result.
- Edit the
schema.prismafile - Create a new migration with
prisma migrate dev --name <name> - Re-generate your local prisma with
prisma generate - Switch the URL of the database in
.envto point to production - Run
prisma migrate deploy
Quit out of the npm run session and then run the following command:
docker compose down -v