A Pokemon viewer app created with Apollo GraphQL server and React Native.
Full tutorial is available at: https://pusher.com/tutorials/learning-graphql-react-native
The starter
branch contains the starting point for the tutorial. The poke-graphql
branch contains the final output for the tutorial.
The master
branch contains all the post-tutorial updates (if any).
- Clone the repo:
git clone https://github.com/anchetaWern/RNGraphQL.git
cd RNGraphQL
- Install the dependencies:
yarn
- Re-create the
ios
andandroid
folders:
react-native eject
- Install the server dependencies:
cd server
yarn
- Run the server:
yarn start
- Update
App.js
with your machine's internal IP address (or use ngrok):
const client = new ApolloClient({ uri: 'http://YOUR_INTERNAL_IP_ADDRESS:4000/graphql' });
- Run the app:
react-native run-android
react-native run-ios
If this project helped you reduce time to develop, please consider buying me a cup of coffee :)