This app is to give a simple example on how to build a React Native app based on Relay and GraphQL. More specifically, it is using the Node's version of zero-to-graphql.
Setup the Python and GraphQL servers
-
Clone the backend stuff
git clone https://github.com/steveluscher/zero-to-graphql.git
-
Setup the backend
cd zero-django ./manage.py runserver # now it's time to setup the GraphQL server cd zero-node npm install npm start # listening on port 5000
Or you can refer back to the original zero-to-graphql GitHub page.
Run the app
- Clone this repo and get into the root directory
- Install and run the app
react-native run-android adb reverse tcp:8081 tcp:8081 # for listening the dev server adb reverse tcp:5000 tcp:5000 # for access to zero-to-graphql's GraphQL server npm install