Download the ai-text-shortener-app
directory. Click here to download it.
Unzip the downloaded file and navigate to the working directory.
bash
cd RapidAPI\ DevRel-Examples-External\ main\ ai-text-shortener-app/
Install dependencies
bash
npm install
Create .env.local
file in root and add your RapidAPI key.
bash
RAPID_API_KEY=YOUR_RAPID_API_KEYRAPID_API_HOST=YOUR_RAPID_API_HOST
Run the app
bash
npm run dev
You are all set! Open localhost:3000 to see the app.
This example will help you build a full-stack AI app using React, Next.js, and Rapid's API Hub.