prismagraphql/prisma

Name: prisma

Owner: Prisma

Description: ?? Prisma turns your database into a realtime GraphQL API

Created: 2016-09-25 12:54:40.0

Updated: 2018-05-24 15:38:58.0

Pushed: 2018-05-24 15:48:50.0

Homepage: https://www.prisma.io/

Size: 17093

Language: Scala

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Website ? Docs ? Blog ? Forum ? Slack ? Twitter

CircleCI Slack Status npm version

Prisma - turn your database into a GraphQL API. Prisma lets you design your data model and have a production ready GraphQL API online in minutes.

The Prisma GraphQL API provides powerful abstractions and building blocks to develop flexible, scalable GraphQL backends:

  1. Type-safe API that can be used from frontend and backend, including filters, aggregations and transactions.
  2. Data modeling with declarative SDL. Prisma migrates your underlying database automatically.
  3. Realtime API using GraphQL Subscriptions.
  4. Advanced API composition using GraphQL Bindings and schema stitching.
  5. Works with all frontend frameworks like React, Vue.js, Angular (Quickstart Examples).
Contents
Quickstart

Watch this 4 min tutorial or follow the steps below to get started with Prisma:

  1. Install the CLI via NPM:
install -g prisma
  1. Create a new service:

The following command creates all files you need for a new service.

ma init
  1. Define your data model:

Edit datamodel.graphql to define your data model using the GraphQL SDL notation.

 Tweet {
: ID! @unique
eatedAt: DateTime!
xt: String!
ner: User!
cation: Location!


 User {
: ID! @unique
eatedAt: DateTime!
datedAt: DateTime!
ndle: String! @unique
me: String
eets: [Tweet!]!


 Location {
titude: Float!
ngitude: Float!

  1. Deploy your service:

To deploy your service simply run the following command and select one of the hosted development clusters or setup a local Docker-based development environment:

ma deploy
  1. Connect to your GraphQL endpoint:

Use the endpoint from the previous step in your frontend (or backend) applications to connect to your GraphQL API.

  1. Read more in the dedicated quickstarts for your favorite technology

Examples
Architecture

Prisma is a secure API layer that sits in front of your database. Acting as a proxy, Prisma exposes a powerful GraphQL API and manages Rate-Limiting, Authentication, Logging and a host of other features. Because Prisma is a standalone process, it can be scaled independently from your application layer and provide scalable subscriptions infrastructure.

Supported Databases

Prisma can be used for MySQL Databases out of the box. More database connectors will follow:

Join the discussion or contribute to influence which we'll work on next!

GraphQL API

The most important component in Prisma is the GraphQL API:

Try the online demo: open GraphQL Playground

Community

Prisma has a community of thousands of amazing developers and contributors. Welcome, please join us! ?

Contributing

Contributions are welcome and extremely helpful ? Please refer to the contribution guide for more information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.