Sample project to begin a simple Node.js application with Prisma and a PNPM monorepo.
This template is set up to get started with
TypeScript. However, if you need JS only, you
can rename the .ts to .js, remove the types, and remove tsconfig.json.
Alternatively, you could keep tsconfig.json for better type hints.
The project is set up to work with a PostgreSQL database. If you would like to
change that, head to the schema.prisma and change it.
At the root of this project, next to your package.json, create an .env
file. Insert your database environment variables, they will automatically get
deployed. Do not commit this file.
DATABASE_URL=postgres://user:password@host:port/db_name
Run pnpm -r generate to run pnpx prisma generate in your sub projects.