kmjennison / 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 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 53.4%Language:TypeScript 34.8%Language:CSS 6.2%Language:Objective-C 2.7%Language:Python 1.3%Language:Java 1.1%Language:HTML 0.5%