Giter Club home page Giter Club logo

prisma-study's Introduction

Prisma Study

referenced to Prisma GraphQL API Page

Slideshare

Prisma QuickStart

  1. $ npm install -g prisma

  2. $ prisma init

    1. choose you want to configure (to local/to remote)
    2. choose what database do you want to configure
  3. $ docker-compose up -d

  4. $ prisma deploy

  5. $ prisma playground

    Prisma Playground(GraphQL) Examples

    API Usage

    If you want to really test that node API, you have to set the default datamodel in basic prisma tutorial here.

    You can get prisma token $ prisma token

    • fetch
      $ node api/api_fetch.js [username] [email] [post(single node)] [prisma token]
        ex) node api/api_fetch.js prismaTest [email protected] '{"title":"hello prisma!", "published":false}' [prisma token]
      
    • graphql-client
      $ node api/api_graphql-client.js [username] [email] [post(single node)] [prisma token]
        ex) node api/api_fetch.js prismaTest [email protected] '{"title":"hello prisma!", "published":false}' [prisma token]
      
    • graphql-request
      • graphql-request does not support passing headers to the request yet
      • so if you want to test, delete secret: property in prisma.yml and restart prisma.
      $ node api/api_graphql-request.js [username] [email] [post(single node)]
        ex) node api/api_fetch.js prismaTest [email protected] '{"title":"hello prisma!", "published":false}'
      
    • apollo
      • test failed.

Build Customized App (Realtime Chat)

related files

server
⌙ prisma.yml
   ⌙> generated/prisma-study.graphql
⌙ api
  ⌙ prisma_subscription.js
  ⌙ api_fetch_temp.js

client
⌙ src/index.js
⌙ src/App.js

Referenced Sites


Errors I saw

  • Could not connect to websocket endpoint ws://localhost:4466. Please check if the endpoint url is correct.

prisma-study's People

Contributors

geoseong avatar

Watchers

James Cloos avatar hankkuu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.