/chuck

An interactive GraphQL wrapper for https://api.chucknorris.io →

Primary LanguageTypeScript

Chuck

An interactive GraphQL wrapper for the https://chucknorris.io API

Usage

The GraphQL playground can be accessed at https://chuck.byronpolley.com/api/graphql.

To run locally you will need Now CLI.

npm i -g now

npm install

now dev

Queries

Retrieve a list of available categories

{
  categories {
	name
  }
}

Retrieve a random Chuck Norris joke from one of the available categories

{
  random(category: "dev") {
	created_at
	icon_url
	id
	updated_at
	url
	value
  }
}

Tech Stack

  1. React 16.10.2
  2. Next.js 9.0.7
  3. Apollo Boost 0.4.4
  4. Apollo Server Micro 2.9.0
  5. NodeJS LTS 10.16.3
  6. ESLint 6.1.0
  7. Typescript 3.6.4

Notes

  • The frontend implements prefers-color-scheme on supported browsers. Try the transition by switching your OS theme :)

  • Hosted on Now