Skip to content
Building Microservices using Apollo-federation
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
services
.gitignore user service logics Sep 6, 2019
README.md added readme Sep 7, 2019
apollo_federation.png added readme Sep 7, 2019
federation_demo.PNG added readme Sep 7, 2019
gateway.js comment user relationship logic Sep 7, 2019
package-lock.json post service logics Sep 7, 2019
package.json

README.md

Building Microservice using Apollo Federation

This repository is a demo of building microservices using Apollo federation. Apollo federation build a single schema in gateway which stitch all the services.All the microservices are in ./services folder.

It contains the simple blog microservices user , post and comment services which gets connected using gateway

Demo

Installation

User Service

 $ cd services/UserService
 $ npm install
 $ npm run dev 

Post Service

$ cd services/PostService
$ npm install
$ npm run dev

Comment Service

$ cd services/CommentService
$ npm install
$ npm run dev

Gateway

$ npm install

This will install all of the dependencies for the gateway and each underlying service

Running API Gateway

$ npm run start-gateway
You can’t perform that action at this time.