Feathers and Apollo Server Sample Project
JavaScript HTML

README.md

feathers-apollo

feathers apollo integration

About

This is my first attempt at building an app with Apollo Server. This project uses Feathers to provide key features in a simple and easy to use way.

For an explanation of this repository, check out my blog post walking through the stack at docs/explanation-blog.markdown

Unique aspects of this approach for building Apollo Servers:

  1. Feathers cli tool to generate boilerplate and new services

  2. JWT based auth

  3. Permissions via feathers hooks (user can only remove and modify own posts, etc.)

  4. Consistent query syntax independent of database (I could change the database from Mongo to SQL with no change to the resolvers)

  5. Automatic REST endpoint generation (it is nice to have REST as a fallback or for public facing APIs)

  6. Express compliant (use any Express middleware without hacks)

  7. Automatic Socket.io integration (way to use websockets for real-time features before Apollo's solution is completed)

Getting Started

Getting up and running is as easy as 1, 2, 3.

  1. Make sure you have NodeJS and npm installed.
  2. Install your dependencies

    cd path/to/feathers-apollo; npm install
    
  3. Start your app

    npm start