Skip to content

Database framework enabling type-safe data access, schema migrations and development workflows

License

Notifications You must be signed in to change notification settings

HansKristoffer/prisma2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma Framework

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.

What is 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.

Getting started

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.

Contents

Contributing

Read more about how to contribute to the Prisma Framework here

About

Database framework enabling type-safe data access, schema migrations and development workflows

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.7%
  • JavaScript 2.1%
  • Shell 1.2%