Skip to content

rwaltenberg/pokedex-nextjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vercel Deploy

Rodrigo's Pokedex

A concept app made by @rwaltenberg (Linkedin)

Description

This Pokedex is an example React/Next.js application that displays a list of Pokémon using data fetched from a GraphQL API. The application uses Apollo Client for data fetching and Tailwind CSS for styling.

Features

  • Fetches and displays a list of Pokémon with their details.
  • Uses Apollo Client for GraphQL data fetching.
  • Styled with Tailwind CSS.
  • Supports dark mode using next-themes.
  • Includes Cypress for component and end-to-end testing.

Getting Started

Prerequisites

  • Node.js
  • npm, yarn, pnpm, or bun

Installation

  1. Clone the repository:
git clone https://github.com/rwaltenberg/pokedex-nextjs.git
cd pokedex-nextjs
  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install
  1. Create a .env.local file and add your API URL:
API_URL=https://beta.pokeapi.co/graphql/v1beta
  1. Generate the types for the GraphQL queries:
npm run codegen
# or
yarn codegen
# or
pnpm codegen
# or
bun codegen

Running the Development Server

Start the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Building for Production

To create an optimized production build:

npm run build
# or
yarn build
# or
pnpm build
# or
bun build

Running Tests

To run Cypress component tests:

npm run test
# or
yarn test
# or
pnpm test
# or
bun test

To run Cypress end-to-end tests:

npm run test:e2e
# or
yarn test:e2e
# or
pnpm test:e2e
# or
bun test:e2e

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

A pokedex app built with Next.js 14, React 18, and TailwindCSS

Resources

License

Stars

Watchers

Forks

Contributors