/apollo-example

An example of an apollo app with an apollo server and client, connected to a REST API and sql database.

Primary LanguageJavaScript

Apollo example

This is an example project to test Apollo with GraphQL, SQLite, Localstorage and a connection to the [SpaceX-API|https://github.com/r-spacex/SpaceX-API]. This project was created based on the [Apollo tutorial|https://www.apollographql.com/docs/tutorial/introduction].

File structure

The app is split out into two folders:

  • start: Starting point for the tutorial
  • final: Final version

From within the start and final directories, there are two folders (one for server and one for client).

Installation

To run the app, run these commands in two separate terminal windows from the root:

cd final/server && npm i && npm start

and

cd final/client && npm i && npm start