Weather app

Installation Steps

Download the weather-app directory. Click here to download it.

Unzip the downloaded file and navigate to the working directory.

bash
cd RapidAPI\ DevRel-Examples-External\ main\ weather-app/

Install dependencies

bash
npm install

Create .env.local file in root and add your variables

bash
NEXT_PUBLIC_OPEN_WEATHER_API_KEY=YOUR_RAPID_API_KEY

Run the app

bash
npm run dev

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

Weather app

Building a simple weather app is a great way to start learning web development. Let’s do just that in this piece using an API from RapidAPI Hub.

More examples