Skip to content

TzviPM/react-apollo-todo-subscriptions-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-apollo-todo-example

Getting Started

After downloading this example please follow these steps.

1. Create an account

To run this example, please create a graph.cool account and copy your endpoint. This shouldn't take longer than a minute. We promise!

This is how our GraphQL data model looks like:

type Todo {
  text: String!
  complete: Boolean!
}

2. Configure app data endpoint

Open src/index.js and paste your PROJECT_ID to the following line:

const projectUri = 'https://api.graph.cool/simple/v1/__PROJECT_ID__';

3. Run the example

You're done configuring the example application. Please run the following command and open localhost:3000 in your browser. Have fun exploring! 🎉

npm install
npm start

Help & Community Slack Status

Join our Slack community if you run into issues or have questions. We love talking to you!