/hogwarts

Example for Go Meetup on GraphQL

Primary LanguageGoApache License 2.0Apache-2.0

Hogwarts - School of GraphQL

Example for Go Meetup on GraphQL

Setup

It is assumed that you have working go installation, clone this repository into GOPATH/src/hogwarts

  • cd $GOPATH/src
  • git clone https://github.com/nexneo/hogwarts.git
  • cd hogwarts

DB Setup

  • psql < db/schema.sql
  • psql -d hogwarts < db/seed.sql

Install Dependencies

  • go get -u github.com/vektah/gqlgen
  • go get -u gopkg.in/src-d/go-kallax.v1/...
  • go get -u github.com/lib/pq

Run

  • go generate ./...
  • go run main.go