Skip to content

Latest commit

 

History

History
executable file
·
60 lines (37 loc) · 1.63 KB

README.md

File metadata and controls

executable file
·
60 lines (37 loc) · 1.63 KB

react-apollo-instagram-example

Getting Started

After downloading this example please follow these steps or watch the walkthrough video for this example!

1. Create an account

To run this example, please create a Graphcool 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 Post {
  description: String!
  imageUrl: String!
}

2. Configure your GraphQL Endpoint

export REACT_APP_GRAPHQL_ENDPOINT="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

FAQ

How to run this example on Windows?

Replace this line in package.json

"start": "REACT_APP_GRAPHQL_ENDPOINT=${REACT_APP_GRAPHQL_ENDPOINT:=https://api.graph.cool/simple/v1/__PROJECT_ID__} react-scripts start",

with

"start": "set REACT_APP_GRAPHQL_ENDPOINT=https://api.graph.cool/simple/v1/__PROJECT_ID__&&react-scripts start",

Help & Community Slack Status

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