Demonstration of federated GraphQL microservices using Python and Apollo federation.
Federated GraphQL APIs
- Clone repository
git clone https://github.com/thameemk612/apollo-federation-python-micro-services.git cd apollo-federation-python-micro-services
- 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
- 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
- Run Apollo Gateway
cd apollo-gateway npm install node index.js