Built with preact-cli, Apollo, Graphcool, and Tachyons.
This project is a continually evolving test of integrating Preact and Apollo.
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