This is an example of a functioning GraphQL API that can be found deployed on heroku here.
- PostgreSQL
- Koa
- Apollo Server
- GraphQL
- Sequelize
- Docker for PostgreSQL.
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:
- Clone this repo
- Run
npm install
- Run
npm run dev
to start the server locally. - Visit
http://localhost:4000/graphiql
. - Use GraphQL commands to view books and authors. For Reference click on the Docs link on the upper right corner of your browser.
In order to query the data with a client, you can check this React Client and follow the instructions to run it locally.