A web application that combines search engine results with AI-generated responses, allowing users to explore topics with follow-up questions and dynamic content.
- Search Integration: Fetches search results using SerpAPI for any query.
- AI Responses: Provides detailed AI-generated answers to user queries using OpenAI's API.
- Follow-Up Questions: Suggests relevant follow-up questions based on the user's query.
- Interactive Experience: Users can click on follow-up questions to fetch new AI responses and search results dynamically.
- Auto-Reload: Supports automatic server restarts during development with
nodemon.
-
Clone the repository:
git clone https://github.com/your-repo/perplexity-clone.git cd perplexity-clone -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add the following:OPENAI_API_KEY=your_openai_api_key SERP_API_KEY=your_serp_api_key PORT=8080
-
Start the application:
- For production:
npm start
- For development with auto-reloading:
npm run dev
- For production:
-
Open your browser and navigate to:
http://localhost:8080