Optimized for immediate deployment to Vercel.
Comes with:
Requirements: Have Postgres installed
.env.example
to .env
and adjust your local database URL.schema.prisma
to create a basic table.npm run migrate
to create new migrations file.npm install
will also run Prisma migrations and create client which is meant for the production environment, it's fine if this fails locally.npm run dev
starts your app in development mode, rebuilding assets on file changes.npx prisma generate
to ensure it's not using the accelerated client locallyvercel
to link a new or existing Vercel project and create the .vercel directory.npm run deploy
to deploy to Vercel which will run migrations there via postinstall from package.json.