Aaron-Porter / prisma-examples

◭ Examples of Prisma using different languages and technologies

Home Page:https://github.com/prisma/prisma2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prisma 2 Examples

This repository contains a number of ready-to-run examples demonstrating various use cases of the Prisma 2. 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).

Note: The examples in the deployment-platforms and experimental directories are currently outdated but will be updated soon.

TypeScript

Fullstack

Demo Description
rest-nextjs Simple Next.js app (React) with a REST API
graphql-nextjs Simple Next.js app (React) with a GraphQL API

Backend only

Demo Description
script Simple usage of Prisma Client JS in a TypeScript script
graphql Simple GraphQL server based on graphql-yoga
graphql-apollo-server Simple GraphQL server based on apollo-server
graphql-sdl-first Simple GraphQL server based on the SDL-first approach of graphql-tools (Apollo)
graphql-auth GraphQL server with email-password authentication & permissions
rest-express Simple REST API with Express.JS
grpc Simple gRPC API

JavaScript (Node.js)

Fullstack

Demo Description
rest-nextjs Simple Next.js app (React) with a REST API

Backend only

Demo Description
script Simple usage of Prisma Client JS in a Node.js script
graphql Simple GraphQL server based on graphql-yoga
graphql-apollo-server Simple GraphQL server based on apollo-server
graphql-auth GraphQL server with email-password authentication & permissions
graphql-sdl-first Simple GraphQL server based on the SDL-first approach of graphql-tools (Apollo)
rest-express Simple REST API with Express.JS
grpc Simple gRPC API

Experimental

The experimental directory contains the same examples as the javascript and typescript directories. The main difference is that it uses Prisma to perform database migrations which are currently an experimental feature.

Deployment platform

The projects in the deployment-platforms directory show what "Prisma Client"-based deployment setups look like for various deployment providers. Note that they are currently unmaintained but will be updated soon.

About

◭ Examples of Prisma using different languages and technologies

https://github.com/prisma/prisma2

License:Apache License 2.0


Languages

Language:TypeScript 55.0%Language:JavaScript 36.3%Language:Shell 5.2%Language:HTML 2.8%Language:CSS 0.4%Language:Dockerfile 0.2%Language:Makefile 0.1%