https://github.com/morrys/offline-examples
Relay and Apollo Offline Examples
https://github.com/morrys/offline-examples
apollo example offline react react-relay-offline reactjs relay relay-modern
Last synced: 3 months ago
JSON representation
Relay and Apollo Offline Examples
- Host: GitHub
- URL: https://github.com/morrys/offline-examples
- Owner: morrys
- License: mit
- Created: 2019-05-29T21:06:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T19:31:12.000Z (almost 3 years ago)
- Last Synced: 2025-04-20T00:47:12.400Z (9 months ago)
- Topics: apollo, example, offline, react, react-relay-offline, reactjs, relay, relay-modern
- Language: JavaScript
- Homepage:
- Size: 34.9 MB
- Stars: 50
- Watchers: 2
- Forks: 5
- Open Issues: 188
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - offline-examples
README
# Offline Examples
A collection of example applications using [react-relay-offline](https://github.com/morrys/react-relay-offline).
and
A collection of example applications using [@wora/apollo-offline](https://github.com/morrys/wora/tree/master/packages/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
```