This project is port of the relay-starter-kit that implements the graphql server using phoenix and absinthe.
This GitHub visual diff shows the main changes.
Note, this project intentionally matches the general structure found in the relay-starter-kit.
To start your Phoenix app:
- Navigate to
my_app
- Install dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000/graphiql
to introspect your schema.
To start your Relay app:
- Navigate to
relay-starter-kit
- Install dependencies with
npm install
- Start a local server with
npm start
Now you can visit localhost:3000
to view your relay application.
Changes to schema.ex
will require the relay server to be stopped and
the update-schema
script to be run.
npm run update-schema
npm start