GithubHelp home page GithubHelp logo

buddhikasemasinghe / apollo-suspencifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 790 KB

Experimenting React Suspense features with Apollo client

HTML 6.35% CSS 3.39% JavaScript 90.26%
react-suspense apollo-client apollo-server graphql reach-router react-cache react-apollo-hooks

apollo-suspencifier's Introduction

React Suspense with Apollo

A learning guide to experiment React Suspense features with GraphQL server. This is my first hands on experience in GraphQL.

๐Ÿ™

This project is inspired by Dan Abramov's talk in React Fest and Jared Palmer's talk in React Europe 2019. I have used some patterns/concepts that they have used in this example.

๐Ÿ’ฟ

React Client

cd apollo-client yarn

Since I have used some experimental features of React you need to build react master and do yarn link some packages in order to get this application work.

git clone https://github.com/facebook/react.git yarn build

  • And perform yarn link in following packages react, react-dom, react-cache cd build/packages/react yarn link
  • Then cd apollo-client yarn link react react-dom react-cache

Node/Express Server

cd apollo-server

You need to create an account in The movie database then copy API key

  • move .env.template .env
  • replace MOVIE_DB_API key

npm i

Run

Run server

cd apollo-server npm start

Run client

cd apollo-client yarn start

Testing

Todo

Slides

here

apollo-suspencifier's People

Contributors

buddhikasemasinghe avatar

Watchers

 avatar

apollo-suspencifier's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.