Skip to content

Client app for Rick and Morty API, built with TypeScript, Next.js, TanStack Query, NES.css & Tailwind CSS.

Notifications You must be signed in to change notification settings

onderonur/rick-and-morty-graphql

Repository files navigation

RickQL - Rick And Morty GraphQL App

This is a client application which consumes the Rick and Morty API.

It uses React Server Components and TanStack Query for all the data fetching.

The project was written in JavaScript at first. But it was migrated to TypeScript eventually.

I've used GraphQL Code Generator to create type definitions automatically.

A feature based folder structure has been implemented to keep things organized.

Live demo is here.

Development

First, we need to install the dependencies:

npm install

And run the project in development mode:

npm run dev

The Rick and Morty API

This is a really cool public API which provides you the characters, locations and episodes. It has both Rest and GraphQL implementations. So, you can use it to learn and explore new techniques, libraries etc.

You can check it out here.