This is a Node js backend boilerplate.
Run the development server:
yarn dev
Run the following command to create your database file. This also creates the User
and Post
tables that are defined in prisma/schema.prisma
:
npx prisma migrate dev --name init
Once you've updated your data model, you can execute the changes against your database with the following command:
npx prisma migrate