Skip to content

Fully fledged todo application using Strawberry GraphQL, FastAPI, Relay and React

Notifications You must be signed in to change notification settings

aryaniyaps/python-graphql-relay-todos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python GraphQL Relay Todos

Fully fledged todo application using Strawberry GraphQL, FastAPI, Relay and React

codecov


Tech Stack

project-demo.mp4

Tech Stack:

Backend stack

Frontend stack

Features:

  • Dependency Injection in resolvers
  • Usage of dataloaders to resolve nodes
  • Relay spec compliant GraphQL server
  • Connection handling, including inserts, updates and deletions
  • Usage of Relay Client and fragments
  • Cursor paginated connections
  • End to end GraphQL code generation
  • Fully tested GraphQL server
  • User facing errors modelled within the schema

Starting the project

  1. setup docker compose
docker compose up
  1. install server dependencies
cd server
pdm install
  1. setup database migrations
pdm run migrate
  1. start the server
pdm run dev
  1. install client dependencies
cd client
npm install
  1. start the client
npm run dev

Generating the GraphQL schema

cd server
pdm run generate-schema

Running the Relay Compiler

cd client
npm run relay --watch