Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swarthout/feathers-apollo
Feathers and Apollo Server Sample Project
https://github.com/swarthout/feathers-apollo
apollo-server feathers graphql mongodb nodejs
Last synced: 2 months ago
JSON representation
Feathers and Apollo Server Sample Project
- Host: GitHub
- URL: https://github.com/swarthout/feathers-apollo
- Owner: swarthout
- License: mit
- Created: 2016-05-03T12:38:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T02:48:07.000Z (over 6 years ago)
- Last Synced: 2024-08-03T18:14:21.993Z (6 months ago)
- Topics: apollo-server, feathers, graphql, mongodb, nodejs
- Language: JavaScript
- Size: 53.7 KB
- Stars: 176
- Watchers: 15
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-feathersjs - Feathers + Apollo
README
# WARNING: DEPRECATED
## feathers-apollo> feathers apollo integration
## About
This is my first attempt at building an app with [Apollo Server](http://www.apollostack.com/).
This project uses [Feathers](http://feathersjs.com) 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](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
2. Install your dependencies
```
cd path/to/feathers-apollo; npm install
```3. Start your app
```
npm start
```