/typescript-graphql-and-hooks

A demo repo for a talk on putting these technologies together

Primary LanguageTypeScript

TypeScript, GraphQL, and Hooks

This is a demo repo to accompany a lightning talk I gave on using these technologies together. This showcases some of the best tools I currently (Spring 2019) know of for interacting with data on a server.

The lightning talk on this subject can be found here

Technologies Overview

Backend

  • Prisma - generates a GraphQL API and ORM-style client based on a database graphql schema description
  • Nexus - Declarative, Code-First GraphQL Schemas with generated TypeScript to maximize TypeScript benefit with minimal manual typings
  • Built on top of some prisma-examples, primarily this one

API

Frontend

Tools

Setup

  1. Install the correct node version defined in the .nvmrc file
  • If you have nvm this can be installed with nvm install
  1. Install yarn
  2. Run yarn to install global dependencies
  3. cd into server directory and follow the readme steps there
  4. cd into the client directory and follow the readme steps there