Skip to content

FVitor7/POC_Strawberry_GraphQL_Federantion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POC Strawberry GraphQL and FastAPI

Foobar is a Python library for dealing with word pluralization.

Installation

Use the package manager pip to install requirements.

Go to one of the microservice folders and run:

pip install -r requirements.txt

Usage

Users Microservice

Open the user_service folder in your terminal and run:

uvicorn app:app --port 8000 --reload

Tasks Microservice

Open the task_service folder in your terminal and run:

uvicorn app:app --port 8800 --reload

Gateway

Open the gateway folder in your terminal and isntall npm dependencies:

npm install
npm run-script dev

Federation of the two microservices will be available on port 7000

Access: http://localhost:7000

Generating the Schema

In the microservice folder run:

strawberry export-schema schema.schema > schema/schema.graphql

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published