This repository is used as a central point to collect information and issues around the Prisma Framework (formerly called Prisma 2) while it's in Preview. It also contains the documentation and the code of the Prisma Framework CLI.
💡 The Prisma Framework is currently in Preview! Limitations include missing features and limited performance issues. You can track the progress of the Prisma Framework on isprisma2ready.com
.
To get started, you can explore a number of ready-to-run examples or follow the holistic tutorial. The example projects include use cases such as building GraphQL, REST or gRPC APIs (with Node.js or TypeScript) using the Prisma Framework.
The Prisma Framework (formerly called Prisma 2) is a database framework that consists of these tools:
- Photon: Type-safe and auto-generated database client ("ORM replacement")
- Lift: Declarative data modeling and migrations
- Studio: Admin UI to support various database workflows
While each tool can be used standalone (in both greenfield and brownfield projects), they integrate nicely through common components like the Prisma schema or the Prisma Framework CLI.
The easiest way to get started with Photon and/or Lift is by using the init
command of the prisma2
CLI via npx:
npx prisma2 init hello-prisma
Alternatively, you can install the prisma2
CLI globally and run the init
command then:
npm install -g prisma2
prisma2 init hello-prisma
The interactive prompt will ask you to provide database credentials for your database. If you don't have a database yet, select SQLite and let the CLI set up a database file for you.
- Getting started
- Tutorial
- Prisma schema file
- Data sources
- Data modeling
- Relations
- Prisma Framework CLI
- Development mode
- Introspection
- Limitations
- Core
- Photon
- Lift
- Importing and exporting data
- Supported databases
- Telemetry
- How to provide feedback for the Prisma Framework?
- Release process
- Upgrading from Prisma 1
- FAQ
- Glossary
Read more about how to contribute to the Prisma Framework here