Download the uk-restaurant-app directory. Click here to download it.
Unzip the downloaded file and navigate to the working directory.
bashcd RapidAPI\ DevRel-Examples-External\ main\ uk-restaurant-app/
Install dependencies
bashnpm install
Create .env.local file in root and add your RapidAPI key.
bashNEXT_PUBLIC_RAPIDAPI_KEY=YOUR_RAPID_API_KEY
Run the app
bashnpm run dev
You are all set! Open localhost:3000 to see the app.
If you are from the United Kingdom, you would want to know the restaurants in your district. In this piece, we are building a small web app just for this using an API from RapidAPI Hub.