Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 775 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 775 Bytes

warthog-starter

This is a minimal example of using the Warthog GraphQL API library.

Setup

To get things set up,

  1. Start PostgreSQL. You can BYO or we've provided a dockerized PostgreSQL, which can be run with yarn postgres:start
  2. Install dependencies with yarn bootstrap

Running the server

  1. Start the PostgreSQL instance you created during setup
  2. Run yarn start to run the server

Using GraphQL Playground

When you run yarn start, it will open graphql-playground. When in the playground, you can issue queries and mutations against the API. Try some of the examples in examples.gql.

Running tests

Run yarn test to run tests