/VeeDrive

Apollo GraphQL tutorial rewrite with JavaScript

Primary LanguageJavaScriptMIT LicenseMIT

Apollo GraphQL tutorial rewrite using JavaScript 👋

Version License: ISC

Forked from VeeDrive repo used by this tutorial, which is a JavaScript rewrite of Apollo tutorial

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).

Enhancements done in this repo

Here I worked in final (start was left intact from VeeDrive repo). The modifications are:

  • Authentication by email and password
  • API SpaceX updated to v3
  • Launch date included in launch details
  • Loading component doesn't cover Header component
  • Detection and cleaning of invalid login token stored in localStorage
  • Sqlite initiallization so there is no need to include an initial sqlite file

Demo

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