lakylekidd / graphql-express-api

This is a sample implementation of REST API using GraphQL, Koa, Apollo Server and Sequelize

Home Page:https://graphql-sample-api.herokuapp.com/graphiql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL Express API

This is an example of a functioning GraphQL API that can be found deployed on heroku here.

Technologies used

  • PostgreSQL
  • Koa
  • Apollo Server
  • GraphQL
  • Sequelize
  • Docker for PostgreSQL.

Instructions

In order to use this repo you need to run a postgres image locally by running docker run --name postgres -e POSTGRES_PASSWORD=secret -d postgres. After that:

  1. Clone this repo
  2. Run npm install
  3. Run npm run dev to start the server locally.
  4. Visit http://localhost:4000/graphiql.
  5. Use GraphQL commands to view books and authors. For Reference click on the Docs link on the upper right corner of your browser.

GraphQL Client

In order to query the data with a client, you can check this React Client and follow the instructions to run it locally.

About

This is a sample implementation of REST API using GraphQL, Koa, Apollo Server and Sequelize

https://graphql-sample-api.herokuapp.com/graphiql


Languages

Language:JavaScript 100.0%