Giter VIP home page Giter VIP logo

federation-nation's Introduction

apollo logo graphql logo moon highway logo

Apollo GraphQL Federation Nation

Welcome to the Apollo Federation Nation GraphQL Course. We are assuming that you found these files because you are in the course. However, if you found them by some other means, welcome as well!

Instructor Info

Slides

You can find the slides in the root of this project: slides-federation.html. Open in your browser to view.

Clone the Repo

These files are your starting point. We are going to build and compose a wonderful collection of services. Clone or download these files to get started.

Running the Complete Solution

After you have cloned the repo, simply checkout the Completed Solution branch to run the complete solution:

git checkout complete-solution

Then install the files:

npm install

This installer installs the files for each service, in every subfolder. Be patient.

npm start

Once the files are installed, npm start will start one instance of each service using pm2. You can only run one instance of each service because this course does not use a persistent data layer. It was designed to teach federation, not build your entire architecture. It stores data in memory, so if you spin up more than one instance of each service, you will see some wacky results.

The services should be running locally on the following ports. Please make sure you are not currently running any other applications locally on any of these ports:

Service URL
Hue Review Gateway http://localhost:4000
Snowtooth Gateway http://localhost:5000
Accounts Service http://localhost:4001
Reviews Service http://localhost:4003
Color Service http://localhost:4002
Lift Service http://localhost:5001
Trail Service http://localhost:5002

You can also run the following npm commands:

Command Description
npm start Starts services using pm2
npm stop Stops all running services
npm run delete Deletes all services from pm2
npm run logs Shows log files for all services

Additionally pm2 commands work: pm2 flush, pm2 monit, etc.

federation-nation's People

Contributors

moontahoe avatar eveporcello avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.