morrys / offline-examples

Relay and Apollo Offline Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offline Examples

A collection of example applications using react-relay-offline.

and

A collection of example applications using @wora/apollo-offline.

Relay

React

cd relay/todo-updater
yarn
yarn build
yarn start

React Native

  • change local ip address
cd relay/react-native/todo-updater/src/relay
modify file: index.ts

const localIP = "SETLOCALIP"

with your local ip
  • start server relay
cd relay/react-native/todo-updater/server
npm install
npm run start
  • Starts the server that communicates with connected devices
cd relay/react-native/todo-updater
npm install
npm run start
  • Run android
cd relay/react-native/todo-updater
npm run android

Apollo

React

cd apollo/todo/client
npm install
npm run start
cd apollo/todo/server
npm install
npm run start

React Native

  • change local ip address
cd apollo/react-native/todo/src/apollo
modify file: index.ts

const localIP = "SETLOCALIP"

with your local ip
  • start server relay
cd apollo/react-native/todo/server
yarn
yarn start
  • Starts the server that communicates with connected devices
cd apollo/react-native/todo
yarn
yarn start
  • Run android
cd apollo/react-native/todo
yarn run android

About

Relay and Apollo Offline Examples

License:MIT License


Languages

Language:JavaScript 46.4%Language:TypeScript 43.5%Language:CSS 3.6%Language:Java 2.2%Language:Objective-C 1.6%Language:Ruby 1.4%Language:Starlark 0.7%Language:HTML 0.6%