An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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
```