yeongsheng-tan / getaways

Absinthe-Phoenix GraphQL API application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getaways

Absinthe-Phoenix GraphQL API application

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup && mix ecto.migrate
  • Start Phoenix endpoint with mix phx.server
  • Now you can visit http://localhost:4000/graphiql from your browser.
  • Query list of places:
query {
  places {
    id
    name
    location
  }
}
  • Query a place with id=2
query {
  place(id: 2) {
    id
    name
    location
    maxGuests
  }
}

Ready to run in production? Please check our deployment guides.

Learn more

About

Absinthe-Phoenix GraphQL API application


Languages

Language:Elixir 100.0%