Skip to content

Apollo Server Example using MongoDB + Mongoose + Express, Apollo Client using React Native

Notifications You must be signed in to change notification settings

react-native-training/apollo-graphql-mongodb-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo goes along with the Medium post React Native with Apollo Server and Client.

There are two parts to this application: the client (React Native Application) and the server (GraphQL server)

Apollo Server

Using Apollo + GraphQL + MongoDB + Express

To get setup:

clone repository

git clone [email protected]:dabit3/apollo-graphql-mongodb.git

cd into repository

cd apollo-graphql-mongodb/apolloserver

install dependencies

yarn

Start MongoDB Server

mongod

Start project server

node app.js

Open GraphQL Explorer on http://localhost:8080/graphiql

Try submitting a query:

query {
  president(name: "George Washington") {
    name
    term
    party
  }
}

Apollo Client

To get setup

clone repository (if not already done in step 1):

git clone [email protected]:dabit3/apollo-graphql-mongodb.git

cd into repository

cd apollo-graphql-mongodb/apolloclient

install dependencies

yarn

run project

react-native run-ios or react-native run-android

About

Apollo Server Example using MongoDB + Mongoose + Express, Apollo Client using React Native

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published