项目作者: GraphQLCollege

项目描述 :
Pinterest style app built with Apollo subscriptions
高级语言: JavaScript
项目地址: git://github.com/GraphQLCollege/apollo-subscriptions-example.git


Apollo Subscriptions Example

Example

Pinterest style example showing how to setup Apollo Subscriptions.

Blog post: https://www.graphql.college/graphql-subscriptions-with-react-node-apollo-and-postgres/

Technologies

⚛️ React

🚀 Apollo GraphQL

💾 Postgres

Features

Getting started

Requirements

  • Nodejs
  • Postgres

Installation

  1. # Clone repo
  2. git clone https://github.com/GraphQLCollege/apollo-subscriptions-example.git
  3. # Install server dependencies
  4. cd packages/server && yarn
  5. # Setup environment variables
  6. cp .env.example .env
  7. # Create and migrate database
  8. yarn db:create && yarn db:migrate
  9. # Start server
  10. yarn start
  11. # Start client
  12. cd ../client && yarn && yarn start