Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building a GraphQL server in 30 mins

Building a GraphQL server in 30 mins

In this talk, we're doing a live-coding session where we're building a simple GraphQL API with Python, Ariadne, and Starlette. The goal is to explain the very basics of GraphQL and to show how easy it is to build such APIs in Ariadne.

Marcin Gębala

July 15, 2020
Tweet

More Decks by Marcin Gębala

Other Decks in Programming

Transcript

  1. Building a GraphQL Server in 30 minutes In Python, Ariadne

    & Starlette Marcin Gębala @maarcingebala
  2. About me » Python, Django, GraphQL at Mirumee Software »

    Lead Developer at Saleor github.com/mirumee/saleor » Based in Wrocław, Poland » ! " # @maarcingebala
  3. What is GraphQL? GraphQL is a query language for APIs

    and a runtime for fulfilling those queries with your existing data. » Fetching only data that is needed » Combining resources in a single request » Strong typing » Backend agnostic @maarcingebala
  4. Use-cases » Building APIs for web and mobile apps »

    Works great with single-page apps! » Apollo Client + React + Typescript » Code generation » Federations » Combining multiple services under one gateway @maarcingebala
  5. Ariadne Library for building GraphQL servers in Python, crafted with

    ❤ at Mirumee Software. » Lightweight and simple » Schema-first » Asynchronous » github.com/mirumee/ariadne @maarcingebala
  6. Resources » Books: » "Learning GraphQL" by Eve Porcello, Alex

    Banks » "Production Ready GraphQL" by Marc-Andre Giroux » Tutorials: » Apollo tutorial - apollographql.com/docs/tutorial/introduction » How to GraphQL - howtographql.com » Ariadne - ariadnegraphql.org » API examples: » Github API - docs.github.com/en/graphql » Saleor API - pwa.demo.saleor.rocks/graphql @maarcingebala