Prisma Examples
This repository contains a number of ready-to-run examples demonstrating various use cases of Prisma. Pick an example and follow the instructions in the corresponding README.
Are you missing an example? Please feel free to open an issue (read the contribution guidelines for more info).
TypeScript
Demo | Description |
---|---|
script |
Simple usage of Prisma client in script |
graphql |
Simple GraphQL server |
graphql-crud |
GraphQL server with full CRUD API |
graphql-auth |
GraphQL server with email-password authentication & permissions |
graphql-subscriptions |
GraphQL server with realtime subscriptions |
rest-express |
Simple REST API with Express.JS |
grpc |
Simple gRPC API |
docker-mongodb |
Set up Prisma locally with MongoDB |
docker-mysql |
Set up Prisma locally with MySQL |
docker-postgres |
Set up Prisma locally with PostgreSQL |
cli-app |
Simple CLI TODO list app |
Node.js
Demo | Description |
---|---|
script |
Simple usage of Prisma client in script |
graphql |
Simple GraphQL server |
graphql-auth |
GraphQL server with email-password authentication & permissions |
graphql-subscriptions |
GraphQL server with realtime subscriptions |
rest-express |
Simple REST API with Express.JS |
grpc |
Simple gRPC API |
docker-mongodb |
Set up Prisma locally with MongoDB |
docker-mysql |
Set up Prisma locally with MySQL |
docker-postgres |
Set up Prisma locally with PostgreSQL |
cli-app |
Simple CLI TODO list app |
Golang
Demo | Description |
---|---|
script |
Simple usage of Prisma client in script |
graphql |
Simple GraphQL server |
rest-gin |
Simple REST API with Gin |
http-mux |
Simple REST API with gorilla/mux |
docker-mongodb |
Set up Prisma locally with MongoDB |
docker-mysql |
Set up Prisma locally with MySQL |
docker-postgres |
Set up Prisma locally with PostgreSQL |
cli-app |
Simple CLI TODO list app |
Flow
Demo | Description |
---|---|
script |
Simple usage of Prisma client in script |
graphql |
Simple GraphQL server |
Reference Implementations
If you're looking for a more complex real-world application you can check out the following repositories:
Repo | Language | Description |
---|---|---|
graphql-prisma-typescript |
TypeScript | TypeScript-based GraphQL server (Airbnb clone) |