- Install the project's dependencies:
pnpm install- Create an
.envfile in the root of the project and add aDATABASE_URLvariable, i.e.:
DATABASE_URL="file:./dev.db"- Run Prisma's
migratecommand to bootstrap the SQLite database.
pnpm prisma migrate dev- Seed the database with some sample data (optional):
pnpm prisma db seed- Start the application in development mode:
pnpm run devpnpm run seed
- Add your model to
./prisma/schema.prisma - Run
pnpm run prisma generate - Run
pnpm run prisma migrate dev - Enter a name for the migration, ideally something that describes the nature of the change.