Skip to content

0rland0/react-relay-instagram-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-relay-instagram-example

![] (http://i.imgur.com/Hqwsxmq.png)

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!

2. Configure app data endpoint

Open src/app.js and paste your endpoint to the following line:

Relay.injectNetworkLayer(
  new Relay.DefaultNetworkLayer('https://api.graph.cool/relay/v1/__PROJECT_ID__')
);

3. Configure build schema endpoint

Open package.json and insert your endpoint in the following line:

  "graphql": {
    "request": {
      "url": "https://api.graph.cool/relay/v1/__PROJECT_ID__"
    }
  },

This step is needed in order to support Relay. More info can be found here: babel-plugin-react-relay.

4. 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!

About

📷 Instagram clone built with React & Relay

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published