Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.34 KB

File metadata and controls

56 lines (45 loc) · 1.34 KB

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