This is a NextJS starter in Firebase Studio.
To get started, take a look at src/app/page.tsx.
The image search functionality in this application uses the Pexels API. Follow these steps to obtain and configure your API key.
This key is used to authorize your requests to the Pexels API.
- Go to the Pexels API website: https://www.pexels.com/api/
- Sign up or log in to your Pexels account. If you don't have one, you can create one for free.
- Once logged in, navigate to the API key section of your profile or click the "Get Your API Key" button on the API homepage.
- You will be prompted to provide some information about your app. After filling it out, Pexels will generate an API key for you.
- Copy the generated API key. This is your
PEXELS_API_KEY.
Place the copied key into the .env file located in the root directory of your project, like this:
PEXELS_API_KEY="PASTE_YOUR_API_KEY_HERE"
After completing these steps, the image search feature will work as expected using Pexels.