To start your Phoenix server:
- Run
mix setup
to install and setup dependencies - Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix
Rover is a CLI for managing and maintaining graphs.
https://www.apollographql.com/docs/rover/
brew install rover
rover graph introspect http://api.example.com/graphql > api.graphql
rover graph introspect http://api2.example.com/graphql > api2.graphql
Create a supergraph.yml
config file which identifies the back end servers
and graphs:
federation_version: 2
subgraphs:
foo:
routing_url: https://foo.example.com/
schema:
file: ./foo.graphql
bar:
routing_url: https://bar.example.com/
schema:
file: ./bar.graphql
Create output supergraph schema:
rover supergraph compose --config ./supergraph.yml > supergraph.graphql
docker-compose up router
curl --request POST --header 'content-type: application/json' --url http://localhost:4000/graphql --data '{"query":"query { __typename }"}'
curl --request POST --header 'content-type: application/json' --url http://localhost:4000/graphql --data '{"query":"query { __schema { types {name} } }"}'
curl --request POST --header 'content-type: application/json' --url http://localhost:4000/graphql --data '{"query":"query { allLinks { id url description } }"}'