Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1007 Bytes

README.md

File metadata and controls

52 lines (35 loc) · 1007 Bytes

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

npx lerna init
$ npm install

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

Running API Gateway

$ npm run start-gateway