Giter Site home page Giter Site logo

graphql-intro-js's Introduction

Introduction To GraphQL

This repository contains an implementation of a GraphQL server built on graphql-yoga and using Prisma as the data access layer. It covers GraphQL concepts such as query, mutation, subscription, and authentication. It has articles that accompanies it if you want to learn about GraphQL.

  1. Introduction to GraphQL: Schema, Resolvers, Type System, Schema Language, and Query Language (Part 1)
  2. Introduction to GraphQL: Mutation & DB access (Part 2)
  3. Introduction To GraphQL: Subscriptions (Part 3)
  4. Introduction To GraphQL: Authentication (Part 4)

Set up

This project uses Prisma as a data access layer. If you're not hosting your own Prisma server, you can sign up to Prisma cloud and host your Prisma server there. You'll need the Prisma CLI to deploy the data models. To in stall it, run npm install -g prisma. This project was built using version 1.28.3 of the Prisma CLI.

Open the command line and switch to the directory of this project. Run npm install to install the dependency from npm. Run the command cd src/prisma to switch to the Prisma directory. Then run prisma deploy to deploy the data model to a Prisma server. This will prompt you to select where to deploy. Select the Demo Server option if you want to deploy it to Prisma cloud.

Once set up, you can now start the server

Starting the server

Starting the GraphQL server is simply running node src/index.js on the root directory of the project.

graphql-intro-js's People

Contributors

pmbanugo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.