WARNING: Do not run the following unless you want to start over and delete everything within your database schema
- Run
npm run reset
to delete all tables and records in your database to start clean
- Run
npm run pull
, this will introspect your database and create your Prisma schema if it does not already exist - Run
npm run generate
, this will only generate your Prisma client if your Prisma schema and database are already setup
Once your database and schema are set up you can run the index.ts
file with the following:
- Run
npm sun start
- To run each tutorial project, you can copy the contents of scheme.prisma and index.ts file respective files in the root