Skip to content

Latest commit

History

History
36 lines (26 loc) 路 761 Bytes

README.md

File metadata and controls

36 lines (26 loc) 路 761 Bytes

Instagram Clone with Preact + Apollo

Built with preact-cli, Apollo, Graphcool, and Tachyons.

This project is a continually evolving test of integrating Preact and Apollo.

Steps to run

git clone git@github.com:DevanB/insta-preact-apollo.git && cd insta-preact-apollo
npm i -g graphcool
graphcool init --schema insta.graphql
graphcool endpoints

Copy the Simple API endpoint and paste into createNetworkInterface uri:

// src/components/app.js

const networkInterface = createNetworkInterface({
  uri: 'SIMPLE_API_ENDPOINT_URI_GOES_HERE'
});
yarn install && yarn start