Sitelet https://github.com/RapidAPI/DevRel-Examples-External/tree/main/graphql-app
Skip to content

Latest commit

 

History

History

README.md

cover

Example Next.js App with GraphQL API

Live Preview

⚡️ Features

  • Get details of a country using GeoDB, a GraphQL API.

Guide

Read a step-by-step guide to build this application.

🛠️ Installation Steps

  1. Download the graphql-app directory. Click here to download it.

  2. Unzip the downloaded file and navigate to the working directory.

cd RapidAPI\ DevRel-Examples-External\ main\ graphql-app/
  1. Install dependencies
npm install
  1. Create .env.local file in root and add your RapidAPI key.
NEXT_PUBLIC_RAPIDAPI_KEY=YOUR_RAPID_API_KEY
  1. Run the app
npm run dev

You are all set! Open localhost:3000 to see the app.