Skip to content

thameemk/graphql-federation-python-micro-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Federation - Python Micro services

Demonstration of federated GraphQL microservices using Python and Apollo federation.

Example Services

apollo gateway flow chart

Federated GraphQL APIs

Federated GraphQL APIs

Install Demo

  1. Clone repository
    git clone https://github.com/thameemk612/apollo-federation-python-micro-services.git
    cd apollo-federation-python-micro-services
  2. Run Python App 1
    cd python-app-1
    python3 -m pip install virtualenv
    python3 -m virtualenv venv
    source venv/bin/activate
    pip3 install pipenv
    pipenv install
    gunicorn apps:app --bind localhost:8900 -t=600
  3. Run Python App 2
    cd python-app-2
    python3 -m virtualenv venv
    source venv/bin/activate
    pip3 install pipenv
    pipenv install
    gunicorn apps:app --bind localhost:8901 -t=600
  4. Run Apollo Gateway
    cd apollo-gateway
    npm install
    node index.js

Service Run

References