Skip to content

uniquesp/anime-graphql-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎌 Anime GraphQL App

A full-stack Anime Tracker built using React, Apollo Client, and GraphQL

React GraphQL Ruby on Rails Apollo Node.js


✨ GraphQL Pagination Strategies Showcase

This app demonstrates various GraphQL pagination strategies:

Strategy Icon Description
Offset-based πŸ“„ Traditional pagination with page numbers
Cursor-based πŸ”— Forward navigation using cursors
Relay-style 🎯 Bi-directional with forward & backward
Infinite Scroll πŸ”„ Auto-loading content as you scroll

You can Create, Read, Update, and Delete anime entries β€” with a clean UI and smooth pagination.


πŸ”— Live Demo


πŸ“¦ Features

🎯 Core Features

  • πŸ“‹ Full CRUD on anime list
  • πŸ’… Beautiful and simple React UI
  • 🧠 Educational project for GraphQL beginners
  • ⚑ Real-time updates with Apollo Client

πŸ”„ Pagination Types

  • πŸ” Offset pagination (limit + offset)
  • πŸ”— Cursor pagination (after + limit)
  • 🎯 Relay-style pagination (after/before, first/last)
  • πŸ”„ Infinite scroll using Relay-style

πŸ“‚ Folder Structure

anime-graphql-app/
β”œβ”€β”€ πŸ—„οΈ backend/               # Apollo Server (GraphQL)
β”‚   β”œβ”€β”€ πŸ“Š data.js            # Static anime data
β”‚   β”œβ”€β”€ πŸ“‹ schema.js          # TypeDefs + Resolvers
β”‚   └── πŸš€ index.js           # Server entry point
β”‚
└── πŸ’» frontend/              # React + Apollo Client
    β”œβ”€β”€ 🧩 components/        # AnimeCard, Forms, Pagination UIs
    β”œβ”€β”€ πŸ” graphql/           # Queries and mutations
    β”œβ”€β”€ πŸ“± pages/             # Views like AnimeList
    └── βš›οΈ App.js             # Main App

βš™οΈ Getting Started (Local Setup)

βœ… Make sure Node.js and npm are installed on your machine.

1. πŸ“₯ Clone the repository

git clone https://github.com/your-username/anime-graphql-app.git
cd anime-graphql-app

2. πŸš€ Start the Backend (GraphQL Server)

cd backend
npm install
node index.js
GraphQL Server

3. πŸ’» Start the Frontend (React App)

Open a new terminal tab or window:

cd frontend
npm install
npm start
React App

βœ… Now the app should be running and connected to your GraphQL backend.


πŸ“š Read the Blog

Want to understand how pagination works in GraphQL with Apollo Client?

Blog


πŸ› οΈ Tech Stack

Frontend

React Apollo Client

Backend

Node.js Ruby on Rails Apollo Server GraphQL

Data

In-Memory


🀝 Contributing

If you find bugs or want to suggest improvements, feel free to fork and raise a PR.

Contributions are welcome! πŸŽ‰

Contribute


Happy Coding! πŸš€βœ¨

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors