Skip to content

jiashengguo/ticket-booking-prisma-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticket Booking Example With Prisma and ZenStack

This example shows how to implement a concurrent ticket booking system with Prisma and ZenStack.

Running the example

  1. install dependencies
npm install
  1. build
npm run build
  1. seed the database
npm run seed
  1. run any of the below example:
  • simple approach
npm run simple
  • optimistic concurrency control in Prisma
npm run occ
  • optimistic concurrency control in ZenStack
npm run zen