Clone the repository
bash
git clone https://github.com/RapidAPI/DevRel-Examples-External.git
Change the working directory
bash
cd DevRel-Examples-External/coordinate-distance-calculator-app
Install dependencies
bash
npm install
Create .env.local
file in root and add your variables
bash
NEXT_PUBLIC_RAPIDAPI_KEY=YOUR_RAPID_API_KEY
Run the app
bash
npm run dev
You are all set! Open localhost:3000 to see the app.
In this piece, let’s build an app together that will show us the distance between two geographical coordinates.