Skip to content

stackhawk/vuln-graphql-prisma

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,177 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a fork of the apollo example from in Prisma Examples found at Apollo Examples

It has been modified to simplify the build and teardown with Docker and a base helper script.

Docker Build

  • Make sure docker-compose is present on the system.
  • Set SERVER_PORT in the environment and run docker-compose up
SERVER_PORT=4000
docker-compose up

The details of the source project are below.


Prisma Examples

Ready-to-run Prisma example projects 🚀

Website   •   Docs   •   Blog   •   Slack   •   Twitter   •   Demo videos

test keep-prisma-dependencies-updated keep-alpha-branch-in-sync-with-master


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

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 and Nexus Schema
graphql-typegraphql Simple GraphQL server based on graphql-yoga and TypeGraphQL
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 Migrate 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. Learn more about deployment in the Prisma documentation.


About this repository

The master branch of this repository contains the examples with the latest stable version of Prisma CLI and Prisma Client. These dependencies are kept up to date with a GitHub Action workflow, that updates them every time a new version of Prisma is released.

There also is a alpha branch that mirrors the code from master (synced via a GitHub Action workflow), but uses the latest unstable version of Prisma CLI and Prisma Client instead (also updated via a GitHub Action workflow). Thanks to the test coverage of all projects, this can point us to incompatibilities early.

About

🚀 Ready-to-run Prisma example projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 88.2%
  • Dockerfile 11.2%
  • Shell 0.6%